summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template17.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template17.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/template17.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template17.C b/gcc/testsuite/g++.old-deja/g++.jason/template17.C
new file mode 100644
index 000000000..2bb36aa9e
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/template17.C
@@ -0,0 +1,11 @@
+// { dg-do assemble }
+// Caught by Booch Components.
+// Bug: g++ tries to instantiate nested enums.
+
+template <class T> struct A
+{
+ struct B { };
+ enum C { c };
+};
+
+template struct A<int>;