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