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",{{.*}} isDefinition: true
9// CHECK: [[F2:![0-9]*]] = distinct !DISubprogram(name: "f2",{{.*}} isDefinition: true
10// CHECK: [[F1_LINE]] = !DILocation({{.*}}, scope: [[F1]])
11// CHECK: [[F2_LINE]] = !DILocation({{.*}}, scope: [[F2]])
12
13void f1() {
14}
15
16# 2 "foo.c"
17
18void f2() {
19}
20
21