1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
3 // Verify that the global init helper function does not get associated
4 // with any source location.
6 // CHECK: define internal {{.*}}void @_GLOBAL__sub_I_globalinit_loc.cpp({{.*}} {
7 // CHECK: !dbg ![[DBG:.*]]
8 // CHECK: !DISubprogram(linkageName: "_GLOBAL__sub_I_globalinit_loc.cpp"
10 // CHECK-SAME: DISPFlagLocalToUnit
11 // CHECK-SAME: DISPFlagDefinition
12 // CHECK: ![[DBG]] = !DILocation(line: 0,
17 int foo() { return 0; }