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