1 2 3 4 5 6 7 8 9 10 11 12 13
// { dg-do compile } // { dg-options "-O -fkeep-inline-functions -fno-use-cxa-atexit" } void foo (); struct S { ~S () { foo (); } }; S s;