summary refs log tree commit diff
path: root/elf/tst-tls19mod3.c
blob: e7b28016b3b45097b8d763b3f80f173ade07f0d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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;
}