Remove use of INTDEF/INTUSE in nptl
[glibc.git] / elf / tst-unique2.c
blob7bb06873640c5d64f899bb656ecf7292945617bc
1 #include <config.h>
2 #include <dlfcn.h>
3 #include <stdio.h>
5 extern int var;
7 static int
8 do_test (void)
10 #ifdef HAVE_ASM_UNIQUE_OBJECT
11 var = 1;
13 void *h = dlopen ("tst-unique2mod2.so", RTLD_LAZY);
14 if (h == NULL)
16 puts ("cannot load tst-unique2mod2");
17 return 1;
19 int (*f) (int *) = dlsym (h, "f");
20 if (f == NULL)
22 puts ("cannot locate f in tst-unique2mod2");
23 return 1;
25 return f (&var);
26 #else
27 return 0;
28 #endif
31 #define TEST_FUNCTION do_test ()
32 #include "../test-skeleton.c"