aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1999-07-18 04:25:39 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-07-18 04:25:39 +0000
commitbb740ce98a4270c7655512ba1a8ec4e0c76a52b9 (patch)
tree0606b03c0ca6d45115ff3e97a4c2bf0594f882eb
parenta1c6afb002536733f0cdd04fb24ca04f729547a0 (diff)
downloadgcc-bb740ce98a4270c7655512ba1a8ec4e0c76a52b9.zip
gcc-bb740ce98a4270c7655512ba1a8ec4e0c76a52b9.tar.gz
gcc-bb740ce98a4270c7655512ba1a8ec4e0c76a52b9.tar.bz2
New test
From-SVN: r28157
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/defarg10.C11
1 files changed, 11 insertions, 0 deletions
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
index 0000000..02f16b6
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/defarg10.C
@@ -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
+}