☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template20.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/template20.C
code
plain
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
}