xref: /llvm-project/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp (revision 6b3351792c6c9a362a3e8b826bc1d96f8e1918e0)
1 // RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
2 
3 // Check that we don't 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-LABEL: define{{.*}} void @_ZN1AC2Ev
12 // CHECK-LABEL: define{{.*}} void @_ZN1AD2Ev
13 // CHECK-LABEL: define{{.*}} void @_ZN1AD1Ev
A()14 A::A() { }
15 
~A()16 A::~A() { }
17