glibc/elf/order.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;
}