Back to index

glibc  2.9
tst-tls12.c
Go to the documentation of this file.
00001 #include "tst-tls10.h"
00002 
00003 #define CHECK(N, S)                              \
00004   p = &a##N;                                     \
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   CHECK (1, 4);
00015   CHECK (2, 7);
00016 #endif
00017   exit (0);
00018 }