mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-20 09:41:18 +00:00
24 lines
235 B
C
24 lines
235 B
C
|
#include <unistd.h>
|
||
|
|
||
|
void
|
||
|
__attribute__ ((constructor))
|
||
|
init (void)
|
||
|
{
|
||
|
write (1, "4", 1);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
__attribute__ ((destructor))
|
||
|
fini (void)
|
||
|
{
|
||
|
write (1, "5", 1);
|
||
|
}
|
||
|
|
||
|
extern int dep1 (void);
|
||
|
|
||
|
int
|
||
|
main (void)
|
||
|
{
|
||
|
return dep1 () != 42;
|
||
|
}
|