gcc/testsuite/gfortran.dg/gomp/pr115103.f90
raw| 1 | subroutine nogroup_reduction |
| 2 | integer :: i, r |
| 3 | r = 0 |
| 4 | !$omp taskloop nogroup reduction(+:r) ! { dg-error "'REDUCTION' clause at .1. must not be used together with 'NOGROUP' clause" } |
| 5 | do i = 1, 32 |
| 6 | r = r + i |
| 7 | end do |
| 8 | end |
| 9 | subroutine grainsize_num_tasks |
| 10 | integer :: i |
| 11 | !$omp taskloop grainsize(2) num_tasks(2) ! { dg-error "'GRAINSIZE' clause at .1. must not be used together with 'NUM_TASKS' clause" } |
| 12 | do i = 1, 32 |
| 13 | end do |
| 14 | end |