Back to index

glibc  2.9
tst-tlsmod12.c
Go to the documentation of this file.
00001 #include "tst-tls10.h"
00002 
00003 #ifdef USE_TLS__THREAD
00004 extern __thread struct A a2 __attribute__((tls_model("initial-exec")));
00005 
00006 void
00007 check1 (void)
00008 {
00009   if (a1.a != 4 || a1.b != 5 || a1.c != 6)
00010     abort ();
00011   if (a2.a != 7 || a2.b != 8 || a2.c != 9)
00012     abort ();
00013 }
00014 #endif