glibc/elf/tst-tlsmod16b.c

10 lines
133 B
C

#include <tls.h>
extern __thread int tlsvar __attribute__((tls_model("initial-exec")));
void *
in_dso (void)
{
return &tlsvar;
}