rtld: properly handle root directory in load path (bug 30435)
[platform/upstream/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