Merge from mainline
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / appendix-a / a.22.2.c
blob7a6e901a8c73806ae5a337900480820a78df0ac7
1 /* { dg-do compile } */
2 /* { dg-require-effective-target tls } */
4 int
5 increment_counter_2 ()
7 static int counter = 0;
8 #pragma omp threadprivate(counter)
9 counter++;
10 return (counter);