1 /* Check alignment of TLS variable. */
11 } __attribute ((aligned (AL)));
13 static __thread struct foo f;
17 extern int in_dso1 (void);
25 int fail = (((uintptr_t) &f) & (AL - 1)) != 0;
26 printf ("&f = %p %s\n", &f, fail ? "FAIL" : "OK");
29 fail = (((uintptr_t) &g) & (AL - 1)) != 0;
30 printf ("&g = %p %s\n", &g, fail ? "FAIL" : "OK");
35 void *h = dlopen ("tst-tlsmod14b.so", RTLD_LAZY);
38 printf ("cannot open tst-tlsmod14b.so: %m\n");
42 int (*fp) (void) = (int (*) (void)) dlsym (h, "in_dso2");
45 puts ("cannot find in_dso2");
54 #include <support/test-driver.c>