support: Also return fd when it is 0
[glibc.git] / elf / dep3.c
blob3df62820097d35703b0bee541935dd70fa87c9be
1 #include <unistd.h>
3 extern int dep3 (void);
5 static void
6 __attribute__ ((constructor))
7 init (void)
9 write (1, "0", 1);
12 static void
13 __attribute__ ((destructor))
14 fini (void)
16 write (1, "9\n", 2);
19 int
20 dep3 (void)
22 return 42;