diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-26 20:35:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-26 20:35:54 +0000 |
commit | c9a85f9b4cc8ed95ed7feeff554a74bf52bdc1f7 (patch) | |
tree | 0ced1efed2cdfebc0e0217632689a23e7565fa73 /test/CodeGenCXX/arm.cpp | |
parent | f9b9eab747e911ded499924b2616d8712d65efce (diff) |
emit dtors with the right calling convention in -fno-use-cxa-atexit
mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/arm.cpp')
-rw-r--r-- | test/CodeGenCXX/arm.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGenCXX/arm.cpp b/test/CodeGenCXX/arm.cpp new file mode 100644 index 0000000000..5cca7885b7 --- /dev/null +++ b/test/CodeGenCXX/arm.cpp @@ -0,0 +1,20 @@ +// RUN: %clang_cc1 %s -triple=thumbv7-apple-darwin3.0.0-iphoneos -fno-use-cxa-atexit -target-abi apcs-gnu -emit-llvm -o - | FileCheck %s + +class foo { +public: + foo(); + virtual ~foo(); +}; + +class bar : public foo { +public: + bar(); +}; + +// The global dtor needs the right calling conv with -fno-use-cxa-atexit +// rdar://7817590 +bar baz; + +// CHECK: @_GLOBAL__D_a() +// CHECK: call arm_apcscc void @_ZN3barD1Ev(%class.bar* @baz) + |