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

10 lines
191 B
C

int foo (void);
__thread int i_tls = 2;
int main ()
{
int result;
result = foo (); /* Call to foo should return 2, not 1. */
result ++;
return 0; /* break here to check result */
}