9 omp_init_nest_lock (&lock
);
10 if (omp_test_nest_lock (&lock
) != 1)
12 if (omp_test_nest_lock (&lock
) != 2)
14 #pragma omp parallel if (0) reduction (+:l)
16 /* In OpenMP 2.5 this was supposed to return 3,
17 but in OpenMP 3.0 the parallel region has a different
18 task and omp_*_lock_t are owned by tasks, not by threads. */
19 if (omp_test_nest_lock (&lock
) != 0)
24 if (omp_test_nest_lock (&lock
) != 3)
26 omp_unset_nest_lock (&lock
);
27 omp_unset_nest_lock (&lock
);
28 omp_unset_nest_lock (&lock
);
29 omp_destroy_nest_lock (&lock
);