1#include <stdlib.h>
2void
3foo (void)
4{
5 exit (status: 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}
24

source code of glibc/elf/reldep9mod1.c