1// { dg-do run  }
2// PRMS Id: 5070 (testcase 2)
3
4int status = 1;
5
6struct foo {
7  foo& operator= (const foo&) { status = 0; return *this; }
8};
9
10struct xx {
11  foo a;
12};
13
14struct yy : public xx {
15  yy(foo& a) { xx::a = a; }
16};
17
18int main()
19{
20  foo f;
21  yy y (f);
22
23  return status;
24}
25