Add new templates for IEEE wrappers
[glibc.git] / elf / tst-tls15.c
blobd2e1f3d86c4441b5241d7a76b0ad3ec714c3025a
1 #include <dlfcn.h>
2 #include <stdlib.h>
3 #include <stdio.h>
5 static int
6 do_test (void)
8 void *h = dlopen ("tst-tlsmod15a.so", RTLD_NOW);
9 if (h != NULL)
11 puts ("unexpectedly succeeded to open tst-tlsmod15a.so");
12 exit (1);
15 h = dlopen ("tst-tlsmod15b.so", RTLD_NOW);
16 if (h == NULL)
18 puts ("failed to open tst-tlsmod15b.so");
19 exit (1);
22 int (*fp) (void) = (int (*) (void)) dlsym (h, "in_dso");
23 if (fp == NULL)
25 puts ("cannot find in_dso");
26 exit (1);
29 return fp ();
32 #define TEST_FUNCTION do_test ()
33 #include "../test-skeleton.c"