buildtools/binutils/ld/testsuite/ld-i386/tlsdesc1a.c
Alexander von Gluck IV 0cb01df558 binutils: Import binutils-2.32
Change-Id: I7a413a81d33762f3cb1e8c67883d1e616f83d0e9
Reviewed-on: https://review.haiku-os.org/c/1536
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2019-07-11 17:29:38 +00:00

20 lines
234 B
C

#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;
}