binutils/tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/repr.c
2021-04-14 06:31:29 +02:00

14 lines
167 B
C

#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;
}