Sign in
gnu
/
gcc
/
609d1c1bf0472f9d9415b0b124603348dbcd9e4e
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
offset2.C
blob: a598d433431745a84af0c177742848d885da95d7 [
file
] [
log
] [
blame
]
// PRMS Id: 5070 (testcase 2)
int
status
=
1
;
struct
foo
{
foo
&
operator
=
(
const
foo
&)
{
status
=
0
;
}
};
struct
xx
{
foo a
;
};
struct
yy
:
public
xx
{
yy
(
foo
&
a
)
{
xx
::
a
=
a
;
}
};
int
main
()
{
foo f
;
yy y
(
f
);
return
status
;
}