blob: 022f9d0a0a950cb6527e5a46a3f2afc5827a49f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// PR c++/35244
// { dg-do compile }
// { dg-require-effective-target tls }
// { dg-options "-fopenmp" }
int v1;
namespace N1
{
int v2;
}
namespace N2
{
int v3;
}
using N1::v2;
using namespace N2;
struct A;
typedef int i;
#pragma omp threadprivate (i) // { dg-error "is not file, namespace or block scope variable" }
#pragma omp threadprivate (A) // { dg-error "is not file, namespace or block scope variable" }
#pragma omp threadprivate (v1, v2, v3)
void foo ()
{
static int v4;
{
static int v5;
#pragma omp threadprivate (v4, v5)
}
}
|