mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
17 lines
202 B
C
17 lines
202 B
C
|
#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;
|
||
|
}
|