1 2 3 4 5 6 7 8 9 10 11 12
/* Test accessing TLS based variable without any debug info compiled. */ #include <pthread.h> __thread int thread_local = 42; int main(void) { /* Ensure we link against pthreads even with --as-needed. */ pthread_testcancel(); return 0; }