summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/arm.cpp
blob: 1d4085ca231d251c5ff2be4a4e8d5959e4b26112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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 void @_ZN3barD1Ev(%class.bar* @baz)
OpenPOWER on IntegriCloud