blob: 5cca7885b7d7216057861a0bf8f45343a3c7905a [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()
19// CHECK: call arm_apcscc void @_ZN3barD1Ev(%class.bar* @baz)
20