summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/delete-two-arg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/delete-two-arg.cpp')
-rw-r--r--test/CodeGenCXX/delete-two-arg.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGenCXX/delete-two-arg.cpp b/test/CodeGenCXX/delete-two-arg.cpp
new file mode 100644
index 0000000..a5b18ba
--- /dev/null
+++ b/test/CodeGenCXX/delete-two-arg.cpp
@@ -0,0 +1,6 @@
+// RUN: clang-cc -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* %0, i32 4)
OpenPOWER on IntegriCloud