glibc/elf/tst-tls19mod2.c

14 lines
149 B
C

static int __thread tbar __attribute__ ((tls_model ("initial-exec"))) = 666;
void
setter (int a)
{
tbar = a;
}
int
bar (void)
{
return tbar;
}