aboutsummaryrefslogtreecommitdiff
path: root/elf/nodel2mod1.c
blob: acddc4cf8b29106c197db27cc61337e9bf8b05ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdlib.h>
void
foo (void)
{
  exit (0);
}

void
__attribute__((destructor))
bar (void)
{
  static int i;
  foo ();
  ++i;
}
void
baz (void)
{
}