Remove unused PREDEFINED_CLASSES code
[glibc.git] / elf / tst-tls17.c
blobc768fb6a5be707f6583fb34192334695bc108726
1 #include <dlfcn.h>
2 #include <stdio.h>
4 static int
5 do_test (void)
7 void *h = dlopen ("tst-tlsmod17b.so", RTLD_LAZY);
8 if (h == NULL)
10 puts ("unexpectedly failed to open tst-tlsmod17b.so");
11 exit (1);
14 int (*fp) (void) = (int (*) (void)) dlsym (h, "tlsmod17b");
15 if (fp == NULL)
17 puts ("cannot find tlsmod17b");
18 exit (1);
21 if (fp ())
22 exit (1);
24 return 0;
27 #define TEST_FUNCTION do_test ()
28 #include "../test-skeleton.c"