aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/crash1.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash1.C b/gcc/testsuite/g++.old-deja/g++.other/crash1.C
new file mode 100644
index 00000000000..f7caa2f00ba
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/crash1.C
@@ -0,0 +1,6 @@
+class A
+{
+ enum B { ONE, TWO, THREE };
+};
+
+class A::B; // ERROR - A::B is not a class type