1 | #include <stdio.h> |
---|---|
2 | |
3 | #ifndef NAME |
4 | int |
5 | main (void) |
6 | { |
7 | puts (s: "main"); |
8 | } |
9 | #else |
10 | static void __attribute__ ((constructor)) |
11 | init (void) |
12 | { |
13 | puts ("init: "NAME); |
14 | } |
15 | static void __attribute__ ((destructor)) |
16 | fini (void) |
17 | { |
18 | puts ("fini: "NAME); |
19 | } |
20 | #endif |
21 |