repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make build-many-glibcs.py track component versions requested and used.
[glibc.git]
/
dlfcn
/
bug-atexit3-lib.cc
blob
aba772004d50bd2c167dcbad8ff984d3c106828f
1
#include <unistd.h>
2
#include <string.h>
3
4
static void
5
write_message
(
const char
*
message
)
6
{
7
ssize_t unused
__attribute__
((
unused
));
8
unused
=
write
(
STDOUT_FILENO
,
message
,
strlen
(
message
));
9
}
10
11
struct
statclass
12
{
13
statclass
()
14
{
15
write_message
(
"statclass
\n
"
);
16
}
17
~
statclass
()
18
{
19
write_message
(
"~statclass
\n
"
);
20
}
21
};
22
23
struct
extclass
24
{
25
~
extclass
()
26
{
27
static
statclass var
;
28
}
29
};
30
31
extclass globvar
;