summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/virtual-pseudo-destructor-call.cpp
blob: 0d963f9f80ae52c6200d772d51cee1bf37b98421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 %s -cxx-abi itanium -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();
}
OpenPOWER on IntegriCloud