1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
2 ! Check OpenMP clause validity for the following directives:
3 ! 2.10 Device constructs
6 real(8) :: arrayA(256), arrayB(256)
14 !ERROR: `DISTRIBUTE` region has to be strictly nested inside `TEAMS` region.
24 !ERROR: Only `DISTRIBUTE`, `PARALLEL`, or `LOOP` regions are allowed to be strictly nested inside `TEAMS` region.
44 !ERROR: `DISTRIBUTE` region has to be strictly nested inside `TEAMS` region.
53 !ERROR: Only `DISTRIBUTE`, `PARALLEL`, or `LOOP` regions are allowed to be strictly nested inside `TEAMS` region.
55 !ERROR: `DISTRIBUTE` region has to be strictly nested inside `TEAMS` region.
70 !$omp distribute firstprivate(a)
82 !$omp end target teams
85 !ERROR: Only `DISTRIBUTE`, `PARALLEL`, or `LOOP` regions are allowed to be strictly nested inside `TEAMS` region.
91 !$omp distribute firstprivate(a)
104 !ERROR: `DISTRIBUTE` region has to be strictly nested inside `TEAMS` region.
105 !$omp distribute firstprivate(a)