9 int a
= 1, b
= 2, c
= 3;
14 #pragma omp parallel shared (a) private (b) firstprivate (c) \
15 num_threads (2) reduction (||:l)
17 if (a
!= 1 || c
!= 3) l
= 1;
19 if (omp_get_thread_num () == 0)
26 if (omp_get_thread_num () == 1)
28 if (a
!= 4 || c
!= 3) l
= 1;
33 else if (omp_get_num_threads () == 1)
36 if (omp_get_thread_num () == 0)
37 if (a
!= 7 || b
!= 5 || c
!= 6) l
= 1;
39 if (omp_get_thread_num () == 1)
40 if (a
!= 7 || b
!= 8 || c
!= 9) l
= 1;