1 /* glibc test for TLS in ld.so. */
6 #include "tls-macros.h"
9 /* One define int variable, two externs. */
15 extern int in_dso (void);
18 #define TEST_FUNCTION do_test ()
26 /* Set the variable using the local exec model. */
27 puts ("set baz to 3 (LE)");
32 /* Get variables using initial exec model. */
33 puts ("set variables foo and bar (IE)");
40 /* Get variables using local dynamic model. */
41 fputs ("get sum of foo, bar (GD) and baz (LD)", stdout
);
45 printf (" = %d\n", *ap
+ *bp
+ *cp
);
46 result
|= *ap
+ *bp
+ *cp
!= 6;
49 printf ("foo = %d\n", *ap
);
54 printf ("bar = %d\n", *bp
);
59 printf ("baz = %d\n", *cp
);
70 #include "../test-skeleton.c"