Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit28.C
blob: 79d8dd01d073bdc10684a0490364019b845469a6 [
file
] [
log
] [
blame
]
// { dg-do link }
// GROUPS passed templates
template
<
class
T
>
int
foo
(
T t
)
{
return
1
;
}
template
<>
int
foo
(
int
i
)
{
return
0
;
}
int
main
()
{
return
(*((
int
(*)(
int
))
&
foo
<int>
))(
3
);
}