Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/gdb/testsuite/gdb.threads/tls-shared.c
2023-03-06 14:48:14 +01:00

11 lines
167 B
C

#include <pthread.h>
__thread int i_tls = 1;
int foo ()
{
/* Ensure we link against pthreads even with --as-needed. */
pthread_testcancel();
return i_tls;
}