Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
pmf9.C
blob: 17e58b4d7aa0d1065f7a6df1421182d8a93049e1 [
file
] [
log
] [
blame
]
// { dg-do run }
class
K
{
public
:
int
f
(
int
i
)
{
return
i
;
}
};
class
Q
{
public
:
Q
()
{
kp
=
new
K
;
}
int
g
();
private
:
K
*
kp
;
};
int
Q
::
g
()
{
return
(
kp
->
f
)(
42
);
}
int
main
()
{
Q q
;
if
(
q
.
g
()
!=
42
)
return
1
;
}