1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
5 struct B { virtual A foo () const; };
6 struct C { A foo () const; };
7 struct D : virtual B { A foo () const { return A(); } };
8 struct F : D { virtual int bar () const; };
9 int F::bar () const { return 0; }
10 A C::foo () const { return A (); }