blob: 7a6e901a8c73806ae5a337900480820a78df0ac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile } */
/* { dg-require-effective-target tls } */
int
increment_counter_2 ()
{
static int counter = 0;
#pragma omp threadprivate(counter)
counter++;
return (counter);
}
|