repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
tls
/
static-1a.cc
blob
636f9352d4d446a8b1b0f1ebb49a1c5c78754f49
1
// { dg-do run }
2
// { dg-options "-O2" }
3
// { dg-additional-sources "static-1a.cc" }
4
// { dg-require-effective-target tls_runtime }
5
6
struct
A
7
{
8
static
__thread
int
i
;
9
};
10
11
int
12
test
()
13
{
14
if
(
A
::
i
!=
8
)
15
return
1
;
16
17
A
::
i
=
17
;
18
return
0
;
19
}