1  /* PR c++/35244 */
       2  /* { dg-do compile } */
       3  /* { dg-require-effective-target tls } */
       4  /* { dg-options "-fopenmp" } */
       5  
       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)
      12  
      13  void foo ()
      14  {
      15    static int v4;
      16    {
      17      static int v5;
      18  #pragma omp threadprivate (v4, v5)
      19    }
      20  }