diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/defarg.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/defarg.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/defarg.C b/gcc/testsuite/g++.old-deja/g++.pt/defarg.C new file mode 100644 index 000000000..833b98f06 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/defarg.C @@ -0,0 +1,11 @@ +// { dg-do run } +template <class T> +void f(T t, int i = 10); + +template <class T> +void f(T t, int i) {} + +int main() +{ + f(3); +} |