2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / lookup23.C
blob64cb9de49f1e6397a4e7ba7d2dce736fdf139662
1 // { dg-do assemble  }
2 // Test for proper handling of type lookup if base class has field with the
3 // same name as the containing class.
5 struct a { int a; };
6 struct b : a {};
8 b x;
10 void foo ()
12   x.a = 22;