1 ! RUN: %S/test_errors.sh %s %t %flang -fopenmp
3 ! Check OpenMP clause validity for the following directives:
4 ! 2.10 Device constructs
7 real(8) :: arrayA(256), arrayB(256)
15 !ERROR: `DISTRIBUTE` region has to be strictly nested inside `TEAMS` region.
25 !ERROR: Only `DISTRIBUTE` or `PARALLEL` regions are allowed to be strictly nested inside `TEAMS` region.
45 !ERROR: `DISTRIBUTE` region has to be strictly nested inside `TEAMS` region.
54 !ERROR: Only `DISTRIBUTE` or `PARALLEL` regions are allowed to be strictly nested inside `TEAMS` region.
56 !ERROR: `DISTRIBUTE` region has to be strictly nested inside `TEAMS` region.
71 !$omp distribute firstprivate(a)
79 !ERROR: Only `DISTRIBUTE` or `PARALLEL` regions are allowed to be strictly nested inside `TEAMS` region.
85 !$omp distribute firstprivate(a)
98 !ERROR: `DISTRIBUTE` region has to be strictly nested inside `TEAMS` region.
99 !$omp distribute firstprivate(a)