Back to index

glibc  2.9
tst-tls11.c
Go to the documentation of this file.
00001 #include "tst-tls10.h"
00002 
00003 #define CHECK(N, S)                              \
00004   p = f##N##a ();                                \
00005   if (p->a != S || p->b != S + 1 || p->c != S + 2)      \
00006     abort ()
00007 
00008 int
00009 main (void)
00010 {
00011 #ifdef USE_TLS__THREAD
00012   struct A *p;
00013   check1 ();
00014   check2 ();
00015   CHECK (1, 4);
00016   CHECK (2, 22);
00017   CHECK (3, 10);
00018   CHECK (4, 25);
00019   CHECK (5, 16);
00020   CHECK (6, 19);
00021   CHECK (7, 22);
00022   CHECK (8, 25);
00023   CHECK (9, 28);
00024   CHECK (10, 31);
00025 #endif
00026   exit (0);
00027 }