Fix unwind info in x86 memcmp-ssse3.
[glibc.git] / elf / tst-tls9.c
blob12078518fad5aa687d0b79408b2cbc668207e64e
1 #include <dlfcn.h>
2 #include <stdio.h>
3 #include <stdlib.h>
5 #include <link.h>
6 #include <tls.h>
8 #define TEST_FUNCTION do_test ()
9 static int
10 do_test (void)
12 static const char modname1[] = "tst-tlsmod5.so";
13 static const char modname2[] = "tst-tlsmod6.so";
14 int result = 0;
16 void *h1 = dlopen (modname1, RTLD_LAZY);
17 if (h1 == NULL)
19 printf ("cannot open '%s': %s\n", modname1, dlerror ());
20 result = 1;
22 void *h2 = dlopen (modname2, RTLD_LAZY);
23 if (h2 == NULL)
25 printf ("cannot open '%s': %s\n", modname2, dlerror ());
26 result = 1;
29 if (h1 != NULL)
30 dlclose (h1);
31 if (h2 != NULL)
32 dlclose (h2);
34 return result;
38 #include "../test-skeleton.c"