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
);
28 printf (" = %d\n", *ap
+ *bp
);
29 result
|= *ap
+ *bp
!= 3;
32 printf ("foo = %d\n", *ap
);
37 printf ("bar = %d\n", *bp
);
42 /* Get variables using generic dynamic model. */
43 fputs ("get sum of foo and bar and baz (GD)", stdout
);
47 printf (" = %d\n", *ap
+ *bp
+ *cp
);
48 result
|= *ap
+ *bp
+ *cp
!= 6;
51 printf ("foo = %d\n", *ap
);
56 printf ("bar = %d\n", *bp
);
61 printf ("baz = %d\n", *cp
);