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