summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.brendan/crash48.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.brendan/crash48.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.brendan/crash48.C22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.brendan/crash48.C b/gcc_arm/testsuite/g++.old-deja/g++.brendan/crash48.C
new file mode 100755
index 0000000..6dc9da0
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.brendan/crash48.C
@@ -0,0 +1,22 @@
+// Build don't link:
+// GROUPS passed old-abort
+class internal {
+ int field;
+ int anotherfield;
+}; // ERROR - candidates are
+
+class bug {
+ internal* numbers;
+ bug(int size);
+}; // ERROR - several errors
+
+bug::bug(int size)
+{ // ERROR - candidates
+ numbers = new internal(size * size);// ERROR - no match.*
+}
+
+int
+main()
+{
+ bug test;// ERROR - no match
+}