Blame elf/tst-tls19mod3.c
|
Packit Service |
82fcde |
#include <stdio.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
static int __thread tbaz __attribute__ ((tls_model ("local-dynamic"))) = 42;
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
void
|
|
Packit Service |
82fcde |
setter2 (int a)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
tbaz = a;
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
int
|
|
Packit Service |
82fcde |
baz (void)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
printf ("&tbaz=%p\n", &tbaz);
|
|
Packit Service |
82fcde |
return tbaz;
|
|
Packit Service |
82fcde |
}
|