New test case
authorMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 28 Mar 2000 19:24:00 +0000 (19:24 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 28 Mar 2000 19:24:00 +0000 (19:24 +0000)
From-SVN: r32786

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

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp95.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp95.C
new file mode 100644 (file)
index 0000000..c3d0707
--- /dev/null
@@ -0,0 +1,20 @@
+// Build don't link:
+// Origin: Mark Mitchell <mitchell@codesourcery.com>
+
+template <class T, class V>
+struct S
+{
+};
+
+template <class T>
+struct S<T, int>
+{
+  template <class U>
+  void f (U);
+};
+
+template <class T>
+template <class U>
+void S<T, int>::f (U)
+{
+}