7 int i = 0, j = 0, k = ~0;
9 #pragma omp parallel num_threads(4) reduction(+:i) reduction(*:d) reduction(&:k)
11 if (i != 0 || d != 1.0 || k != ~0)
15 if (omp_get_num_threads () != 4)
19 i = omp_get_thread_num ();
28 if (i != (0 + 1 + 2 + 3))
30 if (d != (1.0 * 2.0 * 3.0 * 4.0))