Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-additional-options -fno-use-cxa-atexit }
3 // PR 98531 Making __cxa_atexit (or atexit) more visible means it
4 // must be consistent with the std library's declarations
5
6 struct C
7 {
8 ~C () noexcept;
9 C () noexcept;
10 };
11
12 C &frob ()
13 {
14 static C c; // Requires atexit functionality
15
16 return c;
17 }
18
19 extern "C" int atexit (void (*) (void));