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` or `PARALLEL` 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` or `PARALLEL` 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)
78 !ERROR: Only `DISTRIBUTE` or `PARALLEL` regions are allowed to be strictly nested inside `TEAMS` region.
84 !$omp distribute firstprivate(a)
97 !ERROR: `DISTRIBUTE` region has to be strictly nested inside `TEAMS` region.
98 !$omp distribute firstprivate(a)