.
[glibc/history.git] / elf / order.c
blobca617cbc0905c0644c19cb21166230a7718be335
1 #include <unistd.h>
3 void init (void) __attribute__ ((constructor));
4 void
5 __attribute__ ((constructor))
6 init (void)
8 write (1, "4", 1);
11 void fini (void) __attribute__ ((destructor));
12 void
13 __attribute__ ((destructor))
14 fini (void)
16 write (1, "5", 1);
19 extern int dep1 (void);
21 int
22 main (void)
24 return dep1 () != 42;