1 /* glibc test for TLS in ld.so. */
4 #include "tls-macros.h"
7 /* One define int variable, two externs. */
13 extern int in_dso (void);
16 #define TEST_FUNCTION do_test ()
24 /* Set the variable using the local exec model. */
25 puts ("set baz to 3 (LE)");
30 /* Get variables using initial exec model. */
31 puts ("set variables foo and bar (IE)");
38 /* Get variables using local dynamic model. */
39 fputs ("get sum of foo, bar (GD) and baz (LD)", stdout);
43 printf (" = %d\n", *ap + *bp + *cp);
44 result |= *ap + *bp + *cp != 6;
47 printf ("foo = %d\n", *ap);
52 printf ("bar = %d\n", *bp);
57 printf ("baz = %d\n", *cp);
68 #include "../test-skeleton.c"