1
// Object structure of the example:
13
// Test the "domination" rule of the name lookup.
14
// D::f() dominates A::f() although A::f() can
15
// be reached on a base class path that does not
16
// contain D (=> E->C->B-A).
19
struct B : virtual A {};
20
struct H : virtual A {};
22
struct D : H {void f();};
26
void g() { f(); /* => D::f() */ }