Back to index

glibc  2.9
tst-tlsmod13.c
Go to the documentation of this file.
00001 #include <tls.h>
00002 
00003 #if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
00004 __thread int a[2] __attribute__ ((tls_model ("initial-exec")));
00005 #else
00006 int a[2];
00007 #endif
00008 
00009 int
00010 foo (void)
00011 {
00012   return a[0];
00013 }