mcst-linux-kernel/glibc-2.35/elf/tst-tls19mod3.c

17 lines
202 B
C
Raw Permalink Normal View History

2024-07-09 13:51:45 +03:00
#include <stdio.h>
static int __thread tbaz __attribute__ ((tls_model ("local-dynamic"))) = 42;
void
setter2 (int a)
{
tbaz = a;
}
int
baz (void)
{
printf ("&tbaz=%p\n", &tbaz);
return tbaz;
}