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 | 5e8416a77fe2127c6ac22a3003dacb896cf2b166 (patch) | |
tree | ba53f6f2bced0c5b122993ebc748dd2390bee687 /clang/test/CodeGenCXX/arm.cpp | |
parent | b2a709be07fb92ce3df9355f64028796412f4c41 (diff) | |
download | bcm5719-llvm-5e8416a77fe2127c6ac22a3003dacb896cf2b166.tar.gz bcm5719-llvm-5e8416a77fe2127c6ac22a3003dacb896cf2b166.zip |
emit dtors with the right calling convention in -fno-use-cxa-atexit
mode.
llvm-svn: 102377
Diffstat (limited to 'clang/test/CodeGenCXX/arm.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/arm.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/arm.cpp b/clang/test/CodeGenCXX/arm.cpp new file mode 100644 index 00000000000..5cca7885b7d --- /dev/null +++ b/clang/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) + |