]> git.ipfire.org Git - thirdparty/glibc.git/blob - elf/tst-initorder2.c
install.texi: Build was tested with binutils 2.41 (just released)
[thirdparty/glibc.git] / elf / tst-initorder2.c
1 #include <stdio.h>
2
3 #ifndef NAME
4 int
5 main (void)
6 {
7 puts ("main");
8 }
9 #else
10 static void __attribute__ ((constructor))
11 init (void)
12 {
13 puts ("init: " NAME);
14 }
15 static void __attribute__ ((destructor))
16 fini (void)
17 {
18 puts ("fini: " NAME);
19 }
20 #endif