2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / lookup21.C
blob3a7795de1295c8aa3237f90699ec5b493824d704
1 // { dg-do run  }
2 // Check that we don't complain about ambiguity between the same static
3 // member function in different subobjects.
5 struct A {
6   static void f() {}
7 };
9 struct B: public A { };
10 struct C: public A { };
11 struct D: public B, public C { };
13 int main()
15   D d;
16   d.f();