Use '%z' instead of '%Z' on printf functions
[glibc.git] / elf / tst-tls19.c
blobdd8ea42c3f23adc893867c6065c9ee2bca553e19
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 #include <support/test-driver.c>