2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / ref3.C
blob3a5853c231887426475b95969a6fe3f83999ab05
1 // { dg-do run  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 struct B1
6   int i;
7 };
9 struct B2
11   int j;
14 struct D: public B1, B2 
18 bool f (B2& b)
20   return b.j == 7;
23 int main ()
25   D d;
26   d.i = 2;
27   d.j = 7;
28   if (!f (d))
29     return 1;