(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
gomp/
appendix-a/
a.22.2.c
       1  /* { dg-do compile } */
       2  /* { dg-require-effective-target tls } */
       3  
       4  int
       5  increment_counter_2 ()
       6  {
       7    static int counter = 0;
       8  #pragma omp threadprivate(counter)
       9    counter++;
      10    return (counter);
      11  }