1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* { dg-options "-O1" } */ struct A { ERROR; /* { dg-error "ERROR" } */ ~A(); }; struct B { virtual ~B(); }; struct C : B, A {}; struct D : C {}; D d;