FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / offset2.C
blob1ce6386446d39897c261900324c846faf4658f18
1 // PRMS Id: 5070 (testcase 2)
3 int status = 1;
5 struct foo {
6   foo& operator= (const foo&) { status = 0; return *this; }
7 };
9 struct xx {
10   foo a;
13 struct yy : public xx {
14   yy(foo& a) { xx::a = a; }
17 int main()
19   foo f;
20   yy y (f);
22   return status;