xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/virtual-pseudo-destructor-call.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc struct A {
4f4a2713aSLionel Sambuc   virtual ~A();
5f4a2713aSLionel Sambuc };
6f4a2713aSLionel Sambuc 
f(A * a)7f4a2713aSLionel Sambuc void f(A *a) {
8f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @_Z1fP1A
9f4a2713aSLionel Sambuc   // CHECK: load
10f4a2713aSLionel Sambuc   // CHECK: load
11f4a2713aSLionel Sambuc   // CHECK: [[CALLEE:%[a-zA-Z0-9.]*]] = load
12f4a2713aSLionel Sambuc   // CHECK: call {{.*}} [[CALLEE]](
13f4a2713aSLionel Sambuc   a->~A();
14f4a2713aSLionel Sambuc }
15