1 // RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s
2 // rdar://problem/14985269.
3 //
4 // Verify that the global init helper function does not get associated
5 // with any source location.
6 //
7 // CHECK: define internal void @_GLOBAL__I_a
8 // CHECK-NOT: !dbg
9 // CHECK: "_GLOBAL__I_a", i32 0, {{.*}}, i32 0} ; [ DW_TAG_subprogram ] [line 0] [local] [def]
10 # 99 "someheader.h"
11 class A {
12 public:
13   A();
14   int foo() { return 0; }
15 };
16 # 5 "main.cpp"
17 A a;
18 
19 int f() {
20   return a.foo();
21 }
22 
23