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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tls
/
init-1.C
blob
74f7641fe27469a70050fa57330a31d970e5ad3e
1
/* Valid initializations. */
2
3
__thread int i = 42;
4
5
static int j;
6
__thread int *p = &j;
7
8
/* Note that this is valid in C++ (unlike C) as a run-time initialization. */
9
int *q = &i;
10
11
/* Valid because "const int k" is an integral constant expression in C++. */
12
__thread const int k = 42;
13
__thread const int l = k;