21 lines · c
1// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm < %s | FileCheck %s2 3// Check that, just because we emitted a function from a different file doesn't4// 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",{{.*}} DISPFlagDefinition9// CHECK: [[F1_LINE]] = !DILocation({{.*}}, scope: [[F1]])10// CHECK: [[F2:![0-9]*]] = distinct !DISubprogram(name: "f2",{{.*}} DISPFlagDefinition11// CHECK: [[F2_LINE]] = !DILocation({{.*}}, scope: [[F2]])12 13void f1(void) {14}15 16# 2 "foo.c"17 18void f2(void) {19}20 21