Debian Codegraph @

gcc/testsuite/g++.dg/abi/pr98531-1.C

raw
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 struct C
6 {
7 ~C () noexcept;
8 C () noexcept;
9 };
10
11 C &frob ()
12 {
13 static C c; // Requires atexit functionality
14
15 return c;
16 }
17
18 // Make sure this agrees with what we introduced above
19 #include <cxxabi.h>
20 #include <cstdlib>