9 elemental
function baz ()
18 !$omp parallel workshare
21 forall (i
= 1:10) b(i
) = cos (b(i
)) - 0.5
23 !$omp parallel if (bar () .gt. 2) &
24 !$omp & num_threads (bar () + 1)
27 !$omp parallel do schedule (static, bar () + 4)
32 !$omp end parallel workshare
33 !$omp parallel workshare
34 call foo
! { dg-error "CALL statement" }
35 i
= bar () ! { dg-error "non-ELEMENTAL" }
37 i
= bar () ! { dg-error "non-ELEMENTAL" }
40 j
= j
+ bar () ! { dg-error "non-ELEMENTAL" }
41 !$omp end parallel workshare