[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / debug-info-switch-fallthrough.c
blob36ac371d8270b7bb5875fdb3c531aec1fdad4020
1 // RUN: %clang_cc1 -triple x86_64-apple-macosx11.0.0 -debug-info-kind=standalone -emit-llvm %s -o - | FileCheck %s
2 // 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]+]]
9 void 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;