2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template20.C
blob2cbaffb67a53698b31a4471925a8312235b63c2c
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()
7   int a[2] = { 0, 0 };
8   f (a);
9   g (a);