binutils-gdb/ld/testsuite/ld-size/size-8a.c

16 lines
241 B
C

#include <stdio.h>
extern __thread char bar[];
extern char size_of_bar asm ("bar@SIZE");
extern void set_bar (int, int);
int
main ()
{
set_bar (1, 20);
if (10 == (long) &size_of_bar && bar[1] == 20)
printf ("OK\n");
return 0;
}