1 // { dg-do run } 2 3 extern "C" int printf(const char *, ...); 4 5 struct A { ~AA6 virtual ~A() {} 7 }; 8 9 struct B { ~BB10 virtual ~B() {} 11 }; 12 13 struct C: public A { ~CC14 virtual ~C() {} 15 }; 16 17 struct D: public C, B { ~DD18 virtual ~D() {} 19 }; 20 21 D d; 22 main()23int main() 24 { 25 printf ("%p\n", &d); 26 return 0; 27 } 28