Anders Carlsson | 8e0397a | 2011-05-08 17:25:05 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s |
| 2 | |
| 3 | // Check that we dont emit the complete constructor/destructor for this class. |
| 4 | struct A { |
| 5 | virtual void f() = 0; |
| 6 | A(); |
| 7 | ~A(); |
| 8 | }; |
| 9 | |
| 10 | // CHECK-NOT: define void @_ZN1AC1Ev |
| 11 | // CHECK: define void @_ZN1AC2Ev |
Douglas Gregor | 3e23d68 | 2011-07-26 23:18:30 +0000 | [diff] [blame] | 12 | // CHECK: define void @_ZN1AD1Ev |
Anders Carlsson | 8e0397a | 2011-05-08 17:25:05 +0000 | [diff] [blame] | 13 | // CHECK: define void @_ZN1AD2Ev |
| 14 | A::A() { } |
| 15 | |
| 16 | A::~A() { } |