Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / debug-info-scope-file.c
blob9ba8a65a848f755d65aa2cec97bd6ec60fdff055
1 // RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm < %s | FileCheck %s
3 // Check that, just because we emitted a function from a different file doesn't
4 // mean we insert a file-change inside the next function.
6 // CHECK: ret void, !dbg [[F1_LINE:![0-9]*]]
7 // CHECK: ret void, !dbg [[F2_LINE:![0-9]*]]
8 // CHECK: [[F1:![0-9]*]] = distinct !DISubprogram(name: "f1",{{.*}} DISPFlagDefinition
9 // CHECK: [[F1_LINE]] = !DILocation({{.*}}, scope: [[F1]])
10 // CHECK: [[F2:![0-9]*]] = distinct !DISubprogram(name: "f2",{{.*}} DISPFlagDefinition
11 // CHECK: [[F2_LINE]] = !DILocation({{.*}}, scope: [[F2]])
13 void f1(void) {
16 # 2 "foo.c"
18 void f2(void) {