diff options
author | Anders Carlsson <andersca@mac.com> | 2010-02-05 18:38:45 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-02-05 18:38:45 +0000 |
commit | 2ca4f633b21c65e1a4edc2405a768d7f5db564eb (patch) | |
tree | b603c77d74a911231108bc2d06b4af97bfbe3fb0 /test/CodeGenCXX/global-init.cpp | |
parent | 16c4f3c7d44289e30f5066dce7ce9efe7ff67bbc (diff) |
Fix the bug that was breaking self-host, and re-land the static ctor fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/global-init.cpp')
-rw-r--r-- | test/CodeGenCXX/global-init.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGenCXX/global-init.cpp b/test/CodeGenCXX/global-init.cpp index fd8c159755..b60e056d70 100644 --- a/test/CodeGenCXX/global-init.cpp +++ b/test/CodeGenCXX/global-init.cpp @@ -9,6 +9,8 @@ struct B { B(); ~B(); }; struct C { void *field; }; +struct D { ~D(); }; + // CHECK: @c = global %struct.C zeroinitializer, align 8 // CHECK: call void @_ZN1AC1Ev(%struct.A* @a) @@ -23,4 +25,7 @@ B b; // CHECK-NOT: call void @_ZN1CC1Ev(%struct.C* @c) C c; +// CHECK: call i32 @__cxa_atexit(void (i8*)* bitcast (void (%struct.A*)* @_ZN1DD1Ev to void (i8*)*), i8* getelementptr inbounds (%struct.A* @d, i32 0, i32 0), i8* bitcast (i8** @__dso_handle to i8*)) +D d; + // CHECK: define internal void @__cxx_global_initialization() { |