2022-11-04 09:35:42 -07:00

16 lines
225 B
C

/*
* @@name: threadprivate.1
* @@type: C
* @@operation: compile
* @@expect: success
* @@version: pre_omp_3.0
*/
int counter = 0;
#pragma omp threadprivate(counter)
int increment_counter()
{
counter++;
return(counter);
}