aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-03-19 06:53:41 -0500
committerJason Merrill <jason@gcc.gnu.org>1998-03-19 06:53:41 -0500
commit75d028ffdd8795c48acca596836cb0ff694b9046 (patch)
treee48f3efa06cf73239181e1f1166214ca36a3b11f
parent76b9a14d4d618456558ba4125027be74d1fe29e2 (diff)
downloadgcc-75d028ffdd8795c48acca596836cb0ff694b9046.zip
gcc-75d028ffdd8795c48acca596836cb0ff694b9046.tar.gz
gcc-75d028ffdd8795c48acca596836cb0ff694b9046.tar.bz2
new
From-SVN: r18709
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/memtemp73.C18
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/overload1.C15
2 files changed, 33 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 100644
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);
+}
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
index 0000000..25a40b1
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/overload1.C
@@ -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);
+}