Home | History | Annotate | Download | only in tests
      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
     25