projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
another long long test
[libfirm]
/
ir
/
be
/
test
/
thread.c
1
#ifdef _WIN32
2
#define __thread __declspec( thread )
3
__thread int tls_i = 1;
4
5
int test(void) {
6
return tls_i;
7
}
8
#else
9
int test() {
10
return 1;
11
}
12
#endif
13
14
int main()
15
{
16
printf("Result: %d\n", test());
17
return 0;
18
}