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