OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/21495
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
tls
/
init-2.C
1
/* Invalid initializations. */
2
3
extern __thread int i;
4
__thread int *p = &i; /* { dg-error "dynamically initialized" } */
5
6
extern int f();
7
__thread int j = f(); /* { dg-error "dynamically initialized" } */
8
9
struct S
10
{
11
S();
12
};
13
__thread S s; /* { dg-error "" } two errors here */