2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / offset2.C
blob80e37ad0395aee96476409d7defe511af7ee46ad
1 // { dg-do run  }
2 // PRMS Id: 5070 (testcase 2)
4 int status = 1;
6 struct foo {
7   foo& operator= (const foo&) { status = 0; return *this; }
8 };
10 struct xx {
11   foo a;
14 struct yy : public xx {
15   yy(foo& a) { xx::a = a; }
18 int main()
20   foo f;
21   yy y (f);
23   return status;