1 // { dg-do compile { target c++11 } } 2 // PR 98531 Making __cxa_atexit (or atexit) more visible means it 3 // must be consistent with the std library's declarations 4 5 // Make sure this agrees with what we introduce below 6 #include <cxxabi.h> 7 #include <cstdlib> 8 9 struct C 10 { 11 ~C () noexcept; 12 C () noexcept; 13 }; 14 frob()15C &frob () 16 { 17 static C c; // Requires atexit functionality 18 19 return c; 20 } 21