1#include <config.h> 2 3#ifdef HAVE_TLS 4#include <pthread.h> 5 6extern __thread int so_extern; 7static __thread int so_local; 8extern __thread int global; 9 10int *test_so_extern(void) 11{ 12 return &so_extern; 13} 14 15int *test_so_local(void) 16{ 17 return &so_local; 18} 19 20int *test_so_global(void) 21{ 22 return &global; 23} 24#endif 25