Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / init / dso_handle1.C
blob97f67cad8f48cf64f64527ff8165867b679863cd
1 // PR c++/17042
2 // { dg-do assemble }
3 /* { dg-require-weak "" } */
4 // { dg-options "-fuse-cxa-atexit" }
6 struct A
7 {  A();  ~A(); };
8 A a;
9 extern "C" { void* __dso_handle __attribute__ ((__weak__)); }
10 void f()
11 {  __dso_handle = 0; }