aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/scoping3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/scoping3.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/scoping3.C8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/scoping3.C b/gcc/testsuite/g++.old-deja/g++.jason/scoping3.C
new file mode 100644
index 00000000000..578de7a7e8e
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/scoping3.C
@@ -0,0 +1,8 @@
+// Bug: g++ does not grok nested types very well.
+// Build don't link:
+
+class A {
+ class B;
+ friend class B;
+ class B { }; // gets bogus error -
+};