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
* config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
tls-3.C
1
// { dg-do compile }
2
// { dg-require-effective-target tls }
3
4
#define thr threadprivate
5
6
int i;
7
#pragma omp thr (i)
8
namespace N
9
{
10
int j;
11
#pragma omp thr (j)
12
};
13
struct S
14
{
15
static int s;
16
#pragma omp thr (s) // { dg-error "is not file, namespace or block scope" }
17
};
18
19
int
20
foo ()
21
{
22
static int k;
23
#pragma omp thr (k)
24
return k++ + S::s;
25
}