PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / init / cleanup3.C
blobda7e411aba4ae1de5103a82ece859169a51b8733
1 // Check that on targets with "__cxa_atexit" we use destructors,
2 // rather than cleanup functions, to destroy objects with static
3 // storage duration.
5 // { dg-require-effective-target "cxa_atexit" }
6 // Cleanup functions generated by G++ have the "_tcf" prefix.
7 // { dg-final { scan-assembler-not "_tcf" } }
9 struct S { 
10   ~S();
13 struct T { 
14   S s;
17 S s;
18 T t;
20 void f() {
21   static S s;