llvm-project/clang/test/CodeGenCXX/virtual-pseudo-destructor-c...

11 lines
135 B
C++

// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s
struct A {
virtual ~A();
};
void f(A *a) {
// CHECK: call void %
a->~A();
}