brintos

brintos / llvm-project-archived public Read only

0
0
Text · 420 B · 87e6f4a Raw
17 lines · cpp
1// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s2 3// Check that we don't emit the complete constructor/destructor for this class.4struct A {5  virtual void f() = 0;6  A();7  ~A();8};9 10// CHECK-NOT: define{{.*}} void @_ZN1AC1Ev11// CHECK-LABEL: define{{.*}} void @_ZN1AC2Ev12// CHECK-LABEL: define{{.*}} void @_ZN1AD2Ev13// CHECK-LABEL: define{{.*}} void @_ZN1AD1Ev14A::A() { }15 16A::~A() { }17