diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-07-18 04:25:39 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-07-18 04:25:39 +0000 |
commit | bb740ce98a4270c7655512ba1a8ec4e0c76a52b9 (patch) | |
tree | 0606b03c0ca6d45115ff3e97a4c2bf0594f882eb /gcc | |
parent | a1c6afb002536733f0cdd04fb24ca04f729547a0 (diff) | |
download | gcc-bb740ce98a4270c7655512ba1a8ec4e0c76a52b9.zip gcc-bb740ce98a4270c7655512ba1a8ec4e0c76a52b9.tar.gz gcc-bb740ce98a4270c7655512ba1a8ec4e0c76a52b9.tar.bz2 |
New test
From-SVN: r28157
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/defarg10.C | 11 |
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 +} |