Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
g++.old-deja
/
g++.jason
/
template20.C
blob: 2cbaffb67a53698b31a4471925a8312235b63c2c [
file
] [
log
] [
blame
]
// { 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
);
}