Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
overload9.C
blob: f73acc7f2f07253645b61b0aa96cefe30647883e [
file
] [
log
] [
blame
]
// { dg-do run }
template
<
class
T
>
int
f
(
T
)
{
return
1
;
}
template
<
class
T
>
int
f
(
T
*)
{
return
0
;
}
int
main
()
{
int
(*
h
)(
int
*)
=
&
f
;
int
(&
k
)(
int
*)
=
f
;
return
(*
h
)(
0
)
||
(*
k
)(
0
);
}