Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/template20.C

raw
1 // { dg-do run }
2 // Make sure type deduction works for both types of array parameters.
3 template <class T> void f (T (&a)[2]) { }
4 template <class T> void g (T a[2]) { }
5 int main()
6 {
7 int a[2] = { 0, 0 };
8 f (a);
9 g (a);
10 }