4544591c5067aa0ef7489fb4dee1e37d644ff3ac
[platform/upstream/glibc.git] / elf / order.c
1 #include <unistd.h>
2
3 void
4 __attribute__ ((constructor))
5 init (void)
6 {
7   write (1, "4", 1);
8 }
9
10 void
11 __attribute__ ((destructor))
12 fini (void)
13 {
14   write (1, "5", 1);
15 }
16
17 extern int dep1 (void);
18
19 int
20 main (void)
21 {
22   return dep1 () != 42;
23 }