blob: 026cd2acc46825ccee15d7b1437c0d9881a4a998 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stdio.h>
2
3extern int foo (void);
4extern int bar (void);
5
6void
7__attribute__ ((constructor))
8init (void)
9{
10 (void) (foo () - bar ());
11}
12
13static void
14__attribute__ ((destructor))
15fini (void)
16{
17 putchar ('2');
18}