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
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
tls-2.C
blob
26dbc53e5f8051ec4d5f08b86e048af4059778d0
1
/* { dg-do compile } */
2
/* { dg-require-effective-target tls_native } */
3
4
extern char buf[];
5
#pragma omp threadprivate (buf) /* { dg-error "has incomplete type" } */
6
7
void
8
foo (void)
9
{
10
int i;
11
#pragma omp threadprivate (i) /* { dg-error "automatic variable" } */
12
i = 0;
13
}