New test
authorMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 18 Jul 1999 04:25:39 +0000 (04:25 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 18 Jul 1999 04:25:39 +0000 (04:25 +0000)
From-SVN: r28157

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

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/defarg10.C b/gcc/testsuite/g++.old-deja/g++.pt/defarg10.C
new file mode 100644 (file)
index 0000000..02f16b6
--- /dev/null
@@ -0,0 +1,11 @@
+// Build don't link:
+// Origin: Ian Nixon <ian@tharas.com>
+
+struct A {};
+
+template<class M, class T = A, class C> class Tc {}; // ERROR - no defarg
+
+int main ()
+{
+  Tc<int> oops; // ERROR - using template
+}