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 | 810112e28dc839715d17b0a786f23aaa19600ac0 (patch) | |
tree | be4df999eb856ce5e7be5a6d114df7e82b2533ef /test/CodeGenCXX/global-dtor-no-atexit.cpp | |
parent | b9d5c22529c3f2bf3b03348021c0fd1c723d8516 (diff) |
Fix PR7097, a bad interaction between -fno-use-cxa-atexit and
-mconstructor-aliases by using a WeakVH instead of a raw pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/global-dtor-no-atexit.cpp')
-rw-r--r-- | test/CodeGenCXX/global-dtor-no-atexit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGenCXX/global-dtor-no-atexit.cpp b/test/CodeGenCXX/global-dtor-no-atexit.cpp index 81e2199898..1e125e3f7d 100644 --- a/test/CodeGenCXX/global-dtor-no-atexit.cpp +++ b/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) |