Debian Codegraph @

gcc/testsuite/g++.dg/init/dso_handle1.C

raw
1 // PR c++/17042
2 // { dg-do assemble }
3 /* { dg-require-weak "" } */
4 // { dg-require-effective-target cxa_atexit }
5 // { dg-options "-fuse-cxa-atexit" }
6
7 struct A
8 { A(); ~A(); };
9 A a;
10 extern "C" { void* __dso_handle __attribute__ ((__weak__)); }
11 void f()
12 { __dso_handle = 0; }