diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/defarg2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/defarg2.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/defarg2.C b/gcc/testsuite/g++.old-deja/g++.pt/defarg2.C new file mode 100644 index 000000000..ff036f1f0 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/defarg2.C @@ -0,0 +1,18 @@ +// { dg-do run } +template <int S=0, class T=int> +struct X +{}; + +template <> +struct X<0,int> +{}; + +template <int S> +struct X<S,int> +: X<> +{}; + +int main() +{ + X<1,int> x; +} |