2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin10 | FileCheck %s
|
2009-12-05 03:33:17 +08:00
|
|
|
|
|
|
|
struct A {
|
|
|
|
virtual ~A();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct B : A {
|
|
|
|
virtual ~B();
|
|
|
|
};
|
|
|
|
|
2010-01-02 09:01:18 +08:00
|
|
|
// Complete dtor.
|
2010-02-17 11:52:49 +08:00
|
|
|
// CHECK: @_ZN1BD1Ev = alias {{.*}} @_ZN1BD2Ev
|
2010-01-02 09:01:18 +08:00
|
|
|
|
2009-12-05 03:33:17 +08:00
|
|
|
// Deleting dtor.
|
|
|
|
// CHECK: define void @_ZN1BD0Ev
|
|
|
|
// CHECK: call void @_ZN1AD2Ev
|
|
|
|
// check: call void @_ZdlPv
|
|
|
|
|
|
|
|
// Base dtor.
|
|
|
|
// CHECK: define void @_ZN1BD2Ev
|
|
|
|
// CHECK: call void @_ZN1AD2Ev
|
|
|
|
|
|
|
|
B::~B() { }
|