2010-04-27 04:35:54 +08:00
|
|
|
// 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()
|
2010-06-17 01:49:52 +08:00
|
|
|
// CHECK: call void @_ZN3barD1Ev(%class.bar* @baz)
|