2011-05-09 01:25:05 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
|
|
|
|
|
2018-04-06 23:14:32 +08:00
|
|
|
// Check that we don't emit the complete constructor/destructor for this class.
|
2011-05-09 01:25:05 +08:00
|
|
|
struct A {
|
|
|
|
virtual void f() = 0;
|
|
|
|
A();
|
|
|
|
~A();
|
|
|
|
};
|
|
|
|
|
2020-12-31 12:45:56 +08:00
|
|
|
// CHECK-NOT: define{{.*}} void @_ZN1AC1Ev
|
|
|
|
// CHECK-LABEL: define{{.*}} void @_ZN1AC2Ev
|
|
|
|
// CHECK-LABEL: define{{.*}} void @_ZN1AD2Ev
|
|
|
|
// CHECK-LABEL: define{{.*}} void @_ZN1AD1Ev
|
2011-05-09 01:25:05 +08:00
|
|
|
A::A() { }
|
|
|
|
|
|
|
|
A::~A() { }
|