aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/crash52.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/crash52.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
new file mode 100644
index 00000000000..d10afdcc43d
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
@@ -0,0 +1,13 @@
+// Build don't link:
+// GROUPS passed old-abort
+#include <iostream.h>
+
+class A {
+public:
+ friend A f(A &a);// ERROR - ambiguates.*
+};
+
+A &f(A &a) {// ERROR - new decl.*
+ cout << "Blah\n";
+} // ERROR - non-void function
+