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-2.C
blob
4cc31c909ac88fa71aa7f79bf929edf9d53e1947
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 */