summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/virtual-pseudo-destructor-call.cpp
blob: b14a34d8b587835ba7446e2b9ba9e1339d8b40a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 %s -triple %itanium_abi_triple -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();
}