/* * @@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); }