mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08: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;
|
||
|
}
|