Don't macro-expand failed assertion expression [BZ #18604]
[glibc.git] / elf / tst-tls19.c
blobacbc1d6964902501e7fe0b798c2cf910fdfbf569
1 // BZ 12453
2 #include <stdio.h>
3 #include <dlfcn.h>
6 static int
7 do_test (void)
9 void* dl = dlopen ("tst-tls19mod1.so", RTLD_LAZY | RTLD_GLOBAL);
10 if (dl == NULL)
12 printf ("Error loading tst-tls19mod1.so: %s\n", dlerror ());
13 return 1;
16 int (*fn) (void) = dlsym (dl, "foo");
17 if (fn == NULL)
19 printf("Error obtaining symbol foo\n");
20 return 1;
23 return fn ();
26 #define TEST_FUNCTION do_test ()
27 #include "../test-skeleton.c"