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