aboutsummaryrefslogtreecommitdiff
path: root/test/thread-local.c
blob: 308669993e4728357665c6f717de1493cc095884 (plain)
1
2
3
4
5
6
7
8
9
10
thread_local int a = 1;
static thread_local int b = 2;
extern thread_local int c = 3;
thread_local int d;
static thread_local int e;
extern thread_local int f;
int main(void) {
	static thread_local int x = 6;
	return a + b + c + d + e - x;
}