repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge with main truk.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
dso_handle1.C
blob
97f67cad8f48cf64f64527ff8165867b679863cd
1
// PR c++/17042
2
// { dg-do assemble }
3
/* { dg-require-weak "" } */
4
// { dg-options "-fuse-cxa-atexit" }
5
6
struct A
7
{ A(); ~A(); };
8
A a;
9
extern "C" { void* __dso_handle __attribute__ ((__weak__)); }
10
void f()
11
{ __dso_handle = 0; }