/* * @@name: get_nthrs.2 * @@type: C * @@operation: compile * @@expect: success * @@version: pre_omp_3.0 */ #include void work(int i); void correct() { int i; #pragma omp parallel private(i) { i = omp_get_thread_num(); work(i); } }