blob: 050f9568b807962a098f158c6dd7222e94c3d1ed [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stdio.h>
2
3#ifndef NAME
4int
5main (void)
6{
7 puts ("main");
8}
9#else
10static void __attribute__ ((constructor))
11init (void)
12{
13 puts ("init: " NAME);
14}
15static void __attribute__ ((destructor))
16fini (void)
17{
18 puts ("fini: " NAME);
19}
20#endif