[gdb/symtab] Fix gdb.base/fission-macro.exp with unix/-m32
[binutils-gdb.git] / gdb / testsuite / gdb.threads / tls-shared.c
blob02b13083ab9331aa44ab03cd3a2dee6d171bffb7
2 #include <pthread.h>
4 __thread int i_tls = 1;
5 int foo ()
7 /* Ensure we link against pthreads even with --as-needed. */
8 pthread_testcancel();
9 return i_tls;