1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
4 ! Check OpenMP construct validity for the following directives:
8 integer :: i
, j
, N
= 10
23 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
31 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
39 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
46 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
53 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
57 !$omp end target parallel
61 !ERROR: Only `DISTRIBUTE` or `PARALLEL` regions are allowed to be strictly nested inside `TEAMS` region.
62 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
70 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
74 !$omp end target teams
76 !ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
85 !ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
96 !ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
104 !ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct