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