about summary refs log tree commit diff
path: root/elf/reldep9mod1.c
blob: b75f9f1f1f8873a0c82923b3fadac3280ea86529 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdlib.h>
void
foo (void)
{
  exit (0);
}

void
__attribute__((destructor))
bar (void)
{
  foo ();
}

void
__attribute__((constructor))
destr (void)
{
  extern void baz (void);
  baz ();
}