18 lines · c
1// RUN: %clang_cc1 -triple x86_64-apple-macosx11.0.0 -debug-info-kind=standalone -emit-llvm %s -o - | FileCheck %s2// CHECK: ], !dbg !{{[0-9]+}}3// CHECK-EMPTY:4// CHECK-NEXT: {{.+}}5// CHECK-NEXT: br {{.+}}, !dbg !{{[0-9+]}}6// CHECK-EMPTY:7// CHECK-NEXT: {{.+}}8// CHECK-NEXT: br {{.+}}, !dbg ![[LOC:[0-9]+]]9void test(int num) {10 switch (num) {11 case 0:12 break;13 case 10: // CHECK: ![[LOC]] = !DILocation(line: [[@LINE]], column:{{.+}}, scope: {{.+}})14 default:15 break;16 }17}18