6 #include "tls-macros.h"
9 /* One define int variable, two externs. */
15 extern int in_dso (void);
24 /* Get variables using initial exec model. */
25 fputs ("get sum of foo and bar (IE)", stdout);
26 __asm__ ("" ::: "memory");
29 printf (" = %d\n", *ap + *bp);
30 result |= *ap + *bp != 3;
33 printf ("foo = %d\n", *ap);
38 printf ("bar = %d\n", *bp);
43 /* Get variables using generic dynamic model. */
44 fputs ("get sum of foo and bar and baz (GD)", 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);