binutils/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/repr.c

14 lines
167 B
C
Raw Normal View History

#include <stdlib.h>
#include <stdio.h>
static __thread int a;
static int *c;
int main(int argc, char *argv[])
{
a = 2;
c = &a;
printf("c=%d\n", *c);
return 0;
}