blob: 1d4085ca231d251c5ff2be4a4e8d5959e4b26112 [file] [log] [blame]
Chris Lattnerc9a85f92010-04-26 20:35:54 +00001// RUN: %clang_cc1 %s -triple=thumbv7-apple-darwin3.0.0-iphoneos -fno-use-cxa-atexit -target-abi apcs-gnu -emit-llvm -o - | FileCheck %s
2
3class foo {
4public:
5 foo();
6 virtual ~foo();
7};
8
9class bar : public foo {
10public:
11 bar();
12};
13
14// The global dtor needs the right calling conv with -fno-use-cxa-atexit
15// rdar://7817590
16bar baz;
17
18// CHECK: @_GLOBAL__D_a()
Rafael Espindola75d0f822010-06-16 17:49:52 +000019// CHECK: call void @_ZN3barD1Ev(%class.bar* @baz)