1 2 3 4 5 6 7 8 9 10 11 12 13 14
// PR tree-optimization/37095 // { dg-options "-O" } struct A { virtual A *foo (); }; struct B : virtual A { virtual B *foo () { return 0; } }; B b;