1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! 2.7.4 workshare Construct
4 ! Invalid do construct inside !$omp workshare
6 subroutine workshare(aa
, bb
, cc
, dd
, ee
, ff
, n
)
8 real aa(n
,n
), bb(n
,n
), cc(n
,n
), dd(n
,n
), ee(n
,n
), ff(n
,n
)
10 !ERROR: The structured block in a WORKSHARE construct may consist of only SCALAR or ARRAY assignments, FORALL or WHERE statements, FORALL, WHERE, ATOMIC, CRITICAL or PARALLEL constructs
11 !ERROR: OpenMP constructs enclosed in WORKSHARE construct may consist of ATOMIC, CRITICAL or PARALLEL constructs only
14 print *, "omp workshare"
18 !ERROR: A worksharing region may not be closely nested inside a worksharing, explicit task, taskloop, critical, ordered, atomic, or master region
33 end subroutine workshare