summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-08-26 20:33:16 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-08-26 20:33:16 +0000
commit41f568223a52a145dcd9fd38e80a846778d4b3f6 (patch)
tree3cdb0596d1635b10b09215997ed346512f9551e6
parent69b514b662af6f53725305f13b6c40ce085988f6 (diff)
downloadbcm5719-llvm-41f568223a52a145dcd9fd38e80a846778d4b3f6.tar.gz
bcm5719-llvm-41f568223a52a145dcd9fd38e80a846778d4b3f6.zip
Test
llvm-svn: 189276
-rw-r--r--clang/test/CodeGenCXX/debug-info-globalinit.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-globalinit.cpp b/clang/test/CodeGenCXX/debug-info-globalinit.cpp
index bc613149e06..1cc9bb0d045 100644
--- a/clang/test/CodeGenCXX/debug-info-globalinit.cpp
+++ b/clang/test/CodeGenCXX/debug-info-globalinit.cpp
@@ -12,6 +12,7 @@ int test() {
static int i = test();
__attribute__((nodebug)) static int j = test();
+static int k = test();
int main(void) {}
@@ -26,5 +27,12 @@ int main(void) {}
// CHECK: %[[C1:.+]] = call i32 @_Z4testv()
// CHECK-NOT: dbg
// CHECK: store i32 %[[C1]], i32* @_ZL1j, align 4
+//
+// CHECK-LABEL: define internal void @__cxx_global_var_init2()
+// CHECK-NOT: __cxx_global_var_init
+// CHECK: %[[C2:.+]] = call i32 @_Z4testv(), !dbg ![[LINE2:.*]]
+// CHECK-NOT: __cxx_global_var_init
+// CHECK: store i32 %[[C2]], i32* @_ZL1k, align 4, !dbg
//
// CHECK: ![[LINE]] = metadata !{i32 13, i32
+// CHECK: ![[LINE]] = metadata !{i32 15, i32
OpenPOWER on IntegriCloud