6 #include "tls-macros.h"
9 /* One define int variable, two externs. */
23 /* Get variables using initial exec model. */
24 fputs ("get sum of foo and bar (IE)", stdout
);
27 printf (" = %d\n", *ap
+ *bp
);
28 result
|= *ap
+ *bp
!= 3;
31 printf ("foo = %d\n", *ap
);
36 printf ("bar = %d\n", *bp
);
41 /* Get variables using generic dynamic model. */
42 fputs ("get sum of foo and bar and baz (GD)", stdout
);
46 printf (" = %d\n", *ap
+ *bp
+ *cp
);
47 result
|= *ap
+ *bp
+ *cp
!= 6;
50 printf ("foo = %d\n", *ap
);
55 printf ("bar = %d\n", *bp
);
60 printf ("baz = %d\n", *cp
);