repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tcc
/
108_constructor.c
blob
145d0da6939e35401e5bfcd6632123c65e0faea9
1
extern
int
write
(
int
fd
,
void
*
buf
,
int
len
);
2
3
static void
__attribute__
((
constructor
))
4
testc
(
void
)
5
{
6
write
(
1
,
"constructor
\n
"
,
12
);
7
}
8
9
static void
__attribute__
((
destructor
))
10
testd
(
void
)
11
{
12
write
(
1
,
"destructor
\n
"
,
11
);
13
}
14
15
int
16
main
(
void
)
17
{
18
write
(
1
,
"main
\n
"
,
5
);
19
return
0
;
20
}