1 2 3 4 5 6 7 8 9 10 11 12 13
// PR c++/59916 // { dg-options "-Os -Wreturn-type" } class A {}; struct B : virtual public A { B(); virtual ~B(); }; B::B() {} B::~B() {}