summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp73.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memtemp73.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.pt/memtemp73.C18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp73.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp73.C
new file mode 100755
index 0000000..5732d49
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp73.C
@@ -0,0 +1,18 @@
+template <class T> struct A {
+ template <class U> void f(U);
+};
+
+template <int i> struct B { };
+
+template <class T> template <class U>
+void A<T>::f (U)
+{
+ enum { foo };
+ B<foo> b;
+}
+
+int main ()
+{
+ A<char> a;
+ a.f (42);
+}