Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-i386/tlsdesc1a.c

20 lines
234 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
#include <stdlib.h>
#include <stdio.h>
extern int foo (void);
extern __thread int yyy;
__thread int zzz = 20;
int
main (void)
{
if (foo () != zzz)
abort ();
if (yyy != 100)
abort ();
printf ("PASS\n");
return 0;
}