1 /* Check alignment of TLS variable. */
12 } __attribute ((aligned (AL)));
14 static __thread struct foo f;
18 extern int in_dso1 (void);
26 int fail = (((uintptr_t) &f) & (AL - 1)) != 0;
27 printf ("&f = %p %s\n", &f, fail ? "FAIL" : "OK");
30 fail = (((uintptr_t) &g) & (AL - 1)) != 0;
31 printf ("&g = %p %s\n", &g, fail ? "FAIL" : "OK");
36 void *h = dlopen ("tst-tlsmod14b.so", RTLD_LAZY);
39 printf ("cannot open tst-tlsmod14b.so: %m\n");
43 int (*fp) (void) = (int (*) (void)) dlsym (h, "in_dso2");
46 puts ("cannot find in_dso2");
55 #define TEST_FUNCTION do_test ()
56 #include "../test-skeleton.c"