1 | #include <stdlib.h> |
---|---|
2 | void |
3 | foo (void) |
4 | { |
5 | exit (status: 0); |
6 | } |
7 | |
8 | void |
9 | __attribute__((destructor)) |
10 | bar (void) |
11 | { |
12 | static int i; |
13 | foo (); |
14 | ++i; |
15 | } |
16 | void |
17 | baz (void) |
18 | { |
19 | } |
20 |
1 | #include <stdlib.h> |
---|---|
2 | void |
3 | foo (void) |
4 | { |
5 | exit (status: 0); |
6 | } |
7 | |
8 | void |
9 | __attribute__((destructor)) |
10 | bar (void) |
11 | { |
12 | static int i; |
13 | foo (); |
14 | ++i; |
15 | } |
16 | void |
17 | baz (void) |
18 | { |
19 | } |
20 |