summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template21.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template21.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/template21.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template21.C b/gcc/testsuite/g++.old-deja/g++.jason/template21.C
new file mode 100644
index 000000000..86b613136
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/template21.C
@@ -0,0 +1,16 @@
+// { dg-do assemble }
+// Gosh, this works!
+
+template<class T>
+struct A
+{
+ struct B
+ {
+ void bar();
+ };
+ struct C { };
+};
+
+template<class T> void A<T>::B::bar() { }
+
+template class A<int>;