Enable flate-combine.
[official-gcc.git] / gcc / testsuite / g++.dg / abi / pr98531-2.C
blob4bdf9b9ca0fab6fb72a68b1799317663ff658bea
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
5 // Make sure this agrees with what we introduce below
6 #include <cxxabi.h>
7 #include <cstdlib>
9 struct C
11   ~C () noexcept;
12   C () noexcept;
15 C &frob ()
17   static C c; // Requires atexit functionality
19   return c;