Chris Lattner | c9a85f9 | 2010-04-26 20:35:54 +0000 | [diff] [blame] | 1 | // 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 | |
| 3 | class foo { |
| 4 | public: |
| 5 | foo(); |
| 6 | virtual ~foo(); |
| 7 | }; |
| 8 | |
| 9 | class bar : public foo { |
| 10 | public: |
| 11 | bar(); |
| 12 | }; |
| 13 | |
| 14 | // The global dtor needs the right calling conv with -fno-use-cxa-atexit |
| 15 | // rdar://7817590 |
| 16 | bar baz; |
| 17 | |
| 18 | // CHECK: @_GLOBAL__D_a() |
Rafael Espindola | 75d0f82 | 2010-06-16 17:49:52 +0000 | [diff] [blame] | 19 | // CHECK: call void @_ZN3barD1Ev(%class.bar* @baz) |