about summary refs log tree commit diff
path: root/elf/tst-tlsmod13a.c
blob: d5515d4a15ff519820ddfe2fe08de880dc9c66ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <tls.h>

__thread int b[2] __attribute__ ((tls_model ("initial-exec")));

extern int foo (void);

int
bar (void)
{
  return foo () + b[0];
}