4 common /foo_seen
/ foo_seen
11 common /bar_seen
/ bar_seen
15 integer :: a (10), b (10), foo
, bar
16 logical :: foo_seen
, bar_seen
17 common /foo_seen
/ foo_seen
18 common /bar_seen
/ bar_seen
22 !$omp parallel workshare if (foo () .gt. 2) num_threads (bar () + 1)
25 a(1:5) = max (a(1:5), b(1:5))
26 !$omp end parallel workshare
27 if (any (a(1:5) .ne
. 20)) call abort
28 if (any (a(6:10) .ne
. 10)) call abort
29 if (.not
. foo_seen
.or
. .not
. bar_seen
) call abort