new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 19 Mar 1998 11:53:41 +0000 (06:53 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 19 Mar 1998 11:53:41 +0000 (06:53 -0500)
From-SVN: r18709

gcc/testsuite/g++.old-deja/g++.pt/memtemp73.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/overload1.C [new file with mode: 0644]

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 100644 (file)
index 0000000..5732d49
--- /dev/null
@@ -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);
+}
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/overload1.C b/gcc/testsuite/g++.old-deja/g++.pt/overload1.C
new file mode 100644 (file)
index 0000000..25a40b1
--- /dev/null
@@ -0,0 +1,15 @@
+template <class T> struct B { };
+
+template <class T> struct A {
+  template <class U, class V> int operator () (U u, V v);
+  template <class U, class V> void operator () (B<U> u, B<V> v) { }
+};
+
+int
+main ()
+{
+  A<int> a;
+  B<char> b1;
+  B<short> b2;
+  a (b1, b2);
+}