]>
Commit | Line | Data |
---|---|---|
c0c2af07 UD |
1 | #include <unistd.h> |
2 | ||
1a511d31 | 3 | extern int dep1 (void); |
c0c2af07 UD |
4 | extern int dep2 (void); |
5 | extern int dep4 (void); | |
6 | ||
7 | static void | |
8 | __attribute__ ((constructor)) | |
9 | init (void) | |
10 | { | |
11 | write (1, "3", 1); | |
12 | } | |
13 | ||
14 | static void | |
15 | __attribute__ ((destructor)) | |
16 | fini (void) | |
17 | { | |
18 | write (1, "6", 1); | |
19 | } | |
20 | ||
21 | int | |
22 | dep1 (void) | |
23 | { | |
24 | return dep4 () - dep2 (); | |
25 | } |