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