blob: 749036a4ec1b653bf11a81b1300ae02bbbffe298 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <unistd.h>
2
3extern int dep2 (void);
4extern int dep3 (void);
5extern int dep4 (void);
6
7static void
8__attribute__ ((constructor))
9init (void)
10{
11 write (1, "2", 1);
12}
13
14static void
15__attribute__ ((destructor))
16fini (void)
17{
18 write (1, "7", 1);
19}
20
21int
22dep2 (void)
23{
24 return dep3 () - dep4 ();
25}