repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tls
/
thr-init-2.c
blob
6d00d8ce39ede052bcd87b1fd258850b29667d75
1
/* { dg-require-effective-target tls } */
2
/* { dg-do run } */
3
4
extern
void
abort
() ;
5
6
static
__thread
int
fstat
;
7
static
__thread
int
fstat
=
1
;
8
9
int
test_code
(
int
b
)
10
{
11
fstat
+=
b
;
12
return
fstat
;
13
}
14
15
int
main
(
int
ac
,
char
*
av
[])
16
{
17
int
a
=
test_code
(
1
);
18
19
if
((
a
!=
2
) || (
fstat
!=
2
))
20
abort
() ;
21
22
return
0
;
23
}