summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/nested5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/nested5.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.jason/nested5.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/nested5.C b/gcc/testsuite/g++.old-deja/g++.jason/nested5.C
new file mode 100755
index 0000000..1b0e35c
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/nested5.C
@@ -0,0 +1,11 @@
+// Build don't link:
+
+struct A {
+ struct B { };
+};
+
+struct C : public A {
+ struct D
+ : public B // gets bogus error - can't find B
+ { };
+};