Commit | Line | Data |
---|---|---|
623cc285 WN |
1 | |
2 | #include <pthread.h> | |
3 | ||
8bc2021f EZ |
4 | __thread int i_tls = 1; |
5 | int foo () | |
6 | { | |
623cc285 WN |
7 | /* Ensure we link against pthreads even with --as-needed. */ |
8 | pthread_testcancel(); | |
8bc2021f EZ |
9 | return i_tls; |
10 | } | |
11 |