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