Merge from mainline (160224:163495).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / gomp / appendix-a / a.22.1.c
blobe3586838a34086ff082afbdf439fcdc0674beacb
1 /* { dg-do compile } */
2 /* { dg-require-effective-target tls } */
4 int counter = 0;
5 #pragma omp threadprivate(counter)
6 int
7 increment_counter ()
9 counter++;
10 return (counter);