blob: e7b28016b3b45097b8d763b3f80f173ade07f0d5 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stdio.h>
2
3static int __thread tbaz __attribute__ ((tls_model ("local-dynamic"))) = 42;
4
5void
6setter2 (int a)
7{
8 tbaz = a;
9}
10
11int
12baz (void)
13{
14 printf ("&tbaz=%p\n", &tbaz);
15 return tbaz;
16}