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