1 /* Check alignment of TLS variable. */
15 } __attribute ((aligned (AL)));
17 static __thread struct foo f;
21 extern int in_dso1 (void);
29 int fail = (((uintptr_t) &f) & (AL - 1)) != 0;
30 printf ("&f = %p %s\n", &f, fail ? "FAIL" : "OK");
33 fail = (((uintptr_t) &g) & (AL - 1)) != 0;
34 printf ("&g = %p %s\n", &g, fail ? "FAIL" : "OK");
39 void *h = dlopen ("tst-tlsmod14b.so", RTLD_LAZY);
42 printf ("cannot open tst-tlsmod14b.so: %m\n");
46 int (*fp) (void) = (int (*) (void)) dlsym (h, "in_dso2");
49 puts ("cannot find in_dso2");
58 # define TEST_FUNCTION do_test ()
62 # define TEST_FUNCTION 0
66 #include "../test-skeleton.c"