2013-07-18 15:49:22 +00:00
|
|
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
2003-07-22 15:49:45 +00:00
|
|
|
__thread int i_tls = 1;
|
|
|
|
int foo ()
|
|
|
|
{
|
2013-07-18 15:49:22 +00:00
|
|
|
/* Ensure we link against pthreads even with --as-needed. */
|
|
|
|
pthread_testcancel();
|
2003-07-22 15:49:45 +00:00
|
|
|
return i_tls;
|
|
|
|
}
|
|
|
|
|