| 1 |
// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm < %s | FileCheck %s |
| 2 |
|
| 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. |
| 5 |
|
| 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]]) |
| 12 |
|
| 13 |
void f1(void) { |
| 14 |
} |
| 15 |
|
| 16 |
# 2 "foo.c" |
| 17 |
|
| 18 |
void f2(void) { |
| 19 |
} |
| 20 |
|