summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/friend5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/friend5.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.other/friend5.C5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/friend5.C b/gcc/testsuite/g++.old-deja/g++.other/friend5.C
new file mode 100755
index 0000000..ab15fa5
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/friend5.C
@@ -0,0 +1,5 @@
+// submitted by David C Binderman <dcb@pncl.co.uk>
+
+struct A {
+ friend bool(); // ERROR - invalid declaration
+};