2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
|
2009-11-18 14:59:57 +00:00
|
|
|
|
|
|
|
struct A {
|
|
|
|
virtual ~A();
|
|
|
|
};
|
|
|
|
|
|
|
|
void f(A *a) {
|
2011-07-17 15:40:56 +00:00
|
|
|
// CHECK: define {{.*}} @_Z1fP1A
|
|
|
|
// CHECK: load
|
|
|
|
// CHECK: load
|
|
|
|
// CHECK: [[CALLEE:%[a-zA-Z0-9.]*]] = load
|
|
|
|
// CHECK: call {{.*}} [[CALLEE]](
|
2009-11-18 14:59:57 +00:00
|
|
|
a->~A();
|
|
|
|
}
|