12 lines
192 B
C
12 lines
192 B
C
|
/* { dg-do compile } */
|
||
|
/* { dg-require-effective-target tls } */
|
||
|
|
||
|
int
|
||
|
increment_counter_2 ()
|
||
|
{
|
||
|
static int counter = 0;
|
||
|
#pragma omp threadprivate(counter)
|
||
|
counter++;
|
||
|
return (counter);
|
||
|
}
|