Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
parse12.C
blob: 8988cebc8a4a37056c413e785cd7732ff06d4589 [
file
] [
log
] [
blame
]
// { dg-do run }
// PRMS Id: 6821
struct
A
{
int
operator
()(
int
i
)
{
return
i
;
}
};
struct
B
{
A
*
p
;
int
f
()
{
return
(*
p
)(
42
);
}
// { dg-bogus "" }
};
int
main
()
{
B b
=
{
new
A
};
return
b
.
f
()
!=
42
;
}