summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/dso_handle1.C
blob: 97f67cad8f48cf64f64527ff8165867b679863cd (plain)
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; }