testsuite: tcl exec& -> 'kill -9 $pid' is racy (attach-many-short-lived-thread.exp...
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.threads / tls-shared.c
1
2 #include <pthread.h>
3
4 __thread int i_tls = 1;
5 int foo ()
6 {
7 /* Ensure we link against pthreads even with --as-needed. */
8 pthread_testcancel();
9 return i_tls;
10 }
11
This page took 0.029643 seconds and 4 git commands to generate.