summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb63.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.robertl/eb63.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb63.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb63.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb63.C
new file mode 100644
index 000000000..a49fb0264
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb63.C
@@ -0,0 +1,17 @@
+// { dg-do run }
+// { dg-options "-w -fpermissive" }
+//This uses GNU extensions, so disable -ansi
+#include <stdio.h>
+#include <stdlib.h>
+
+class A {
+public:
+ A(bool b) { abort(); }
+ A(int a, bool b) { printf("cool\n"); }
+};
+
+main() {
+ A* a;
+
+ a = new A[2](1,false);
+}