xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc // Check that we dont emit the complete constructor/destructor for this class.
4f4a2713aSLionel Sambuc struct A {
5f4a2713aSLionel Sambuc   virtual void f() = 0;
6f4a2713aSLionel Sambuc   A();
7f4a2713aSLionel Sambuc   ~A();
8f4a2713aSLionel Sambuc };
9f4a2713aSLionel Sambuc 
10*0a6a1f1dSLionel Sambuc // CHECK-NOT: define void @_ZN1AC1Ev
11f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_ZN1AC2Ev
12f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_ZN1AD2Ev
13*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @_ZN1AD1Ev
A()14f4a2713aSLionel Sambuc A::A() { }
15f4a2713aSLionel Sambuc 
~A()16f4a2713aSLionel Sambuc A::~A() { }
17