blob: 4bdf9b9ca0fab6fb72a68b1799317663ff658bea [file] [log] [blame]
// { dg-do compile { target c++11 } }
// PR 98531 Making __cxa_atexit (or atexit) more visible means it
// must be consistent with the std library's declarations
// Make sure this agrees with what we introduce below
#include <cxxabi.h>
#include <cstdlib>
struct C
{
~C () noexcept;
C () noexcept;
};
C &frob ()
{
static C c; // Requires atexit functionality
return c;
}