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
45 !WARNING: OpenMP directive MASTER has been deprecated, please use MASKED instead.
47 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
54 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
58 !$omp end target parallel
62 !ERROR: Only `DISTRIBUTE`, `PARALLEL`, or `LOOP` regions are allowed to be strictly nested inside `TEAMS` region.
63 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
71 !ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
75 !$omp end target teams
77 !ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
86 !ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
97 !ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
105 !ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct