10 int x
= 1, y
= 2, z
= 3;
13 #pragma omp task shared (x, y, z) depend(inout: x, y) \
14 depend (in: z) if (x > 10)
16 if (x
!= 1 || y
!= 2 || z
!= 3)
21 /* The above task has depend clauses, but no dependencies
22 on earlier tasks, and is if (0), so must be scheduled
29 #pragma omp task shared (x, y) depend(in: x, y)
32 if (x
!= 4 || y
!= 5 || z
!= 3)
35 #pragma omp task shared (x, y) depend(in: x, y)
38 if (x
!= 4 || y
!= 5 || z
!= 3)
41 #pragma omp task shared (x, y, z) depend(inout: x, y) \
42 depend (in: z) if (x > 10)
44 if (x
!= 4 || y
!= 5 || z
!= 3)
49 /* The above task has depend clauses, and may have dependencies
50 on earlier tasks, while it is if (0), it can be deferred. */