]> git.ipfire.org Git - thirdparty/glibc.git/blob - elf/tst-tlsmod13.c
[BZ #2510, BZ #2830, BZ #3137, BZ #3313, BZ #3426, BZ #3465, BZ #3480, BZ #3483,...
[thirdparty/glibc.git] / elf / tst-tlsmod13.c
1 #include <tls.h>
2
3 #if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
4 __thread int a[2] __attribute__ ((tls_model ("initial-exec")));
5 #else
6 int a[2];
7 #endif
8
9 int
10 foo (void)
11 {
12 return a[0];
13 }