Sign in
gnu
/
gcc
/
8353b540e6bf07bc4de944da9c3772c619f86a9c
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template20.C
blob: ee4daa0b82690071133a698f7f00e9972187e2f5 [
file
] [
log
] [
blame
]
// 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
);
}