repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template20.C
blob
2cbaffb67a53698b31a4471925a8312235b63c2c
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
}