diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-19 05:52:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-19 05:52:45 +0000 |
commit | 87233f785b253761dd94a6924d117ba7a6ba3690 (patch) | |
tree | e1c52f5537ebec45b7ddba29964e684b9a95b88b /clang/test/CodeGenCXX/global-dtor-no-atexit.cpp | |
parent | 4581434c27daed4f693323ff48dbea1b35812805 (diff) | |
download | bcm5719-llvm-87233f785b253761dd94a6924d117ba7a6ba3690.tar.gz bcm5719-llvm-87233f785b253761dd94a6924d117ba7a6ba3690.zip |
Fix PR7097, a bad interaction between -fno-use-cxa-atexit and
-mconstructor-aliases by using a WeakVH instead of a raw pointer.
llvm-svn: 106384
Diffstat (limited to 'clang/test/CodeGenCXX/global-dtor-no-atexit.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/global-dtor-no-atexit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/global-dtor-no-atexit.cpp b/clang/test/CodeGenCXX/global-dtor-no-atexit.cpp index 81e21998980..1e125e3f7d8 100644 --- a/clang/test/CodeGenCXX/global-dtor-no-atexit.cpp +++ b/clang/test/CodeGenCXX/global-dtor-no-atexit.cpp @@ -1,5 +1,8 @@ // RUN: %clang_cc1 -triple x86_64 %s -fno-use-cxa-atexit -emit-llvm -o - | FileCheck %s +// PR7097 +// RUN: %clang_cc1 -triple x86_64 %s -fno-use-cxa-atexit -mconstructor-aliases -emit-llvm -o - | FileCheck %s + // CHECK: define internal void @_GLOBAL__D_a() // CHECK: call void @_ZN1AD1Ev(%class.A* @b) // CHECK: call void @_ZN1AD1Ev(%class.A* @a) |