diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template20.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template20.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template20.C b/gcc/testsuite/g++.old-deja/g++.jason/template20.C new file mode 100644 index 000000000..2cbaffb67 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/template20.C @@ -0,0 +1,10 @@ +// { dg-do run } +// Make sure type deduction works for both types of array parameters. +template <class T> void f (T (&a)[2]) { } +template <class T> void g (T a[2]) { } +int main() +{ + int a[2] = { 0, 0 }; + f (a); + g (a); +} |