aboutsummaryrefslogtreecommitdiff
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 00000000000..27e4d047ccd
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/template17.C
@@ -0,0 +1,11 @@
+// Caught by Booch Components.
+// Bug: g++ tries to instantiate nested enums.
+// Build don't link:
+
+template <class T> struct A
+{
+ struct B { };
+ enum C { c };
+};
+
+template struct A<int>;