Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p4068.C
blob: 1e65adce43b0da452f6343863ee5ec5b42a3141b [
file
] [
log
] [
blame
]
// { dg-do run }
// prms-id: 4068
struct
A
{
A
();
typedef
void
(
A
::*
F
)();
void
d
();
void
foo
()
{
}
F
&
f
()
{
return
f_
;
}
F f_
;
};
A
::
A
()
:
f_
(&
A
::
foo
)
{
}
void
A
::
d
()
{
(
this
->*(
f
()))();
}
int
main
()
{
A a
;
a
.
d
();
}