blob: 249a2bae1c2ffc38c63acd54d6caf5afbcf6fd79 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stdlib.h>
2void
3foo (void)
4{
5 exit (0);
6}
7
8void
9__attribute__((destructor))
10bar (void)
11{
12 static int i;
13 foo ();
14 ++i;
15}
16
17void
18__attribute__((constructor))
19destr (void)
20{
21 extern void baz (void);
22 baz ();
23}