1 // RUN: %clang_cc1 -g -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]*]] = {{.*}} ; [ DW_TAG_subprogram ] {{.*}} [def] [f1] 9 // CHECK: [[F2:![0-9]*]] = {{.*}} ; [ DW_TAG_subprogram ] {{.*}} [def] [f2] 10 // CHECK: [[F1_LINE]] = {{.*}}, metadata [[F1]], null} 11 // CHECK: [[F2_LINE]] = {{.*}}, metadata [[F2]], null} 12 13 void f1() { 14 } 15 16 # 2 "foo.c" 17 18 void f2() { 19 } 20 21