blob: 92d6a1c4ff43b76cb2555726766da6cfe83b085b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* PR c++/35244 */
/* { dg-do compile } */
/* { dg-require-effective-target tls } */
/* { dg-options "-fopenmp" } */
int v1;
typedef struct A A;
typedef int i;
#pragma omp threadprivate (i) /* { dg-error "expected identifier before" } */
#pragma omp threadprivate (A) /* { dg-error "expected identifier before" } */
#pragma omp threadprivate (v1)
void foo ()
{
static int v4;
{
static int v5;
#pragma omp threadprivate (v4, v5)
}
}
|