minix/external/bsd/llvm/dist/clang/test/CodeGenCXX/virtual-pseudo-destructor-call.cpp

15 lines
263 B
C++
Raw Normal View History

// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
struct A {
virtual ~A();
};
void f(A *a) {
// CHECK: define {{.*}} @_Z1fP1A
// CHECK: load
// CHECK: load
// CHECK: [[CALLEE:%[a-zA-Z0-9.]*]] = load
// CHECK: call {{.*}} [[CALLEE]](
a->~A();
}