aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-03-28 19:24:00 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-03-28 19:24:00 +0000
commit65a0aad55d6e7d02cc09f8d869ff9cb7555544b4 (patch)
treec395f5b7171bde2de1841752410c8ac0afb742d4 /gcc
parent02ff568ab936e0bd7ffbcdb160d5d9e80f92385c (diff)
downloadgcc-65a0aad55d6e7d02cc09f8d869ff9cb7555544b4.zip
gcc-65a0aad55d6e7d02cc09f8d869ff9cb7555544b4.tar.gz
gcc-65a0aad55d6e7d02cc09f8d869ff9cb7555544b4.tar.bz2
New test case
From-SVN: r32786
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/memtemp95.C20
1 files changed, 20 insertions, 0 deletions
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
index 0000000..c3d0707
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp95.C
@@ -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)
+{
+}