PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / pr35244.c
blob92d6a1c4ff43b76cb2555726766da6cfe83b085b
1 /* PR c++/35244 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target tls } */
4 /* { dg-options "-fopenmp" } */
6 int v1;
7 typedef struct A A;
8 typedef 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)
13 void foo ()
15 static int v4;
17 static int v5;
18 #pragma omp threadprivate (v4, v5)