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

12 lines
249 B
C

/* 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;
}