summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/delete-two-arg.cpp
blob: 5358747fed7b3d2b19a2c75547d25fb58cebba16 (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -triple i686-pc-linux-gnu %s -o - -emit-llvm -verify | FileCheck %s

struct A { void operator delete(void*,__typeof(sizeof(int))); int x; };
void a(A* x) { delete x; }

// CHECK: call void @_ZN1AdlEPvj(i8* %{{.*}}, i32 4)
OpenPOWER on IntegriCloud