Updated to fedora-glibc-20090424T1908
[glibc/history.git] / elf / tst-tlsmod13a.c
blob70a02131ee85d8bb44605596e0eb9868fe7a89b2
1 #include <tls.h>
3 #if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
4 __thread int b[2] __attribute__ ((tls_model ("initial-exec")));
5 #else
6 int b[2];
7 #endif
9 extern int foo (void);
11 int
12 bar (void)
14 return foo () + b[0];