diff options
Diffstat (limited to 'final/ABI-Testsuite/test/mangling/testn.xpp')
-rwxr-xr-x | final/ABI-Testsuite/test/mangling/testn.xpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/final/ABI-Testsuite/test/mangling/testn.xpp b/final/ABI-Testsuite/test/mangling/testn.xpp new file mode 100755 index 00000000..666aac45 --- /dev/null +++ b/final/ABI-Testsuite/test/mangling/testn.xpp @@ -0,0 +1,20 @@ +// This file is distributed under the University of Illinois Open Source License.
+// See LICENSE.TXT for details.
+// RUN: cxx_compiler cxx_11 -c %s -o %t.o
+// RUN: bindump %t.o | FileCheck prefixes %s
+
+#include <cstddef>
+
+
+// LP64-DAG: _ZnwmjjPv
+// ILP32-DAG: _ZnwjjjPv
+void * operator new(std::size_t, unsigned int, unsigned int, void* a) { return 0; }
+
+// operators
+// LP64-DAG: _Znwm
+// ILP32-DAG: _Znwj
+void *operator new(std::size_t) { return 0; }
+
+// LP64-DAG: _Znam
+// ILP32-DAG: _Znaj
+void *operator new[](std::size_t) { return 0; }
|