Don't macro-expand failed assertion expression [BZ #18604]
[glibc.git] / elf / tst-unique2.c
blob442675458b5e023844443effe52c3e12bb2bf2a9
1 #include <config.h>
2 #include <dlfcn.h>
3 #include <stdio.h>
5 extern int var;
7 static int
8 do_test (void)
10 var = 1;
12 void *h = dlopen ("tst-unique2mod2.so", RTLD_LAZY);
13 if (h == NULL)
15 puts ("cannot load tst-unique2mod2");
16 return 1;
18 int (*f) (int *) = dlsym (h, "f");
19 if (f == NULL)
21 puts ("cannot locate f in tst-unique2mod2");
22 return 1;
24 return f (&var);
27 #define TEST_FUNCTION do_test ()
28 #include "../test-skeleton.c"