Sign in
fuchsia
/
third_party
/
llvm-test-suite
/
refs/tags/llvmorg-12.0.1
/
.
/
SingleSource
/
UnitTests
/
Threads
/
2010-12-08-tls.c
blob: 7c98c4e371891273d1ec5cfa0f61d306a63bcf5c [
file
] [
log
] [
blame
]
#include
<stdio.h>
__thread
int
a
=
4
;
int
foo
(
void
)
{
return
a
;
}
int
main
(
void
)
{
printf
(
"a is %d\n"
,
foo
());
return
0
;
}