summaryrefslogtreecommitdiff
path: root/elf/tst-initorder2.c
blob: 050f9568b807962a098f158c6dd7222e94c3d1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>

#ifndef NAME
int
main (void)
{
  puts ("main");
}
#else
static void __attribute__ ((constructor))
init (void)
{
  puts ("init: " NAME);
}
static void __attribute__ ((destructor))
fini (void)
{
  puts ("fini: " NAME);
}
#endif