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