Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
overload11.C
blob: 12b4978b94afc220dfa55559f556a60ded1e94f2 [
file
] [
log
] [
blame
]
// { dg-do link }
template
<
class
T
>
int
f
(
int
(*
fn
)(
T
))
{
return
(*
fn
)(
3
);
}
struct
S
{
static
int
g
(
int
)
{
return
1
;
}
static
void
g
();
int
h
();
};
int
S
::
h
()
{
return
f
(&
g
);
}
int
main
()
{
S s
;
if
(
s
.
h
()
!=
1
)
return
1
;
}