]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/none/tests/tls_so.c
update
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / none / tests / tls_so.c
1 #include <config.h>
2
3 #ifdef HAVE_TLS
4 #include <pthread.h>
5
6 extern __thread int so_extern;
7 static __thread int so_local;
8 extern __thread int global;
9
10 int *test_so_extern(void)
11 {
12         return &so_extern;
13 }
14
15 int *test_so_local(void)
16 {
17         return &so_local;
18 }
19
20 int *test_so_global(void)
21 {
22         return &global;
23
24 #endif