blob: da7e411aba4ae1de5103a82ece859169a51b8733 [file] [log] [blame]
// Check that on targets with "__cxa_atexit" we use destructors,
// rather than cleanup functions, to destroy objects with static
// storage duration.
// { dg-require-effective-target "cxa_atexit" }
// Cleanup functions generated by G++ have the "_tcf" prefix.
// { dg-final { scan-assembler-not "_tcf" } }
struct S {
~S();
};
struct T {
S s;
};
S s;
T t;
void f() {
static S s;
}