| 1 |
! PR fortran/99226 |
| 2 |
|
| 3 |
subroutine sub (n) |
| 4 |
integer :: n, i |
| 5 |
!$omp target ! { dg-error "OMP TARGET region at .1. with a nested TEAMS at .2. may not contain any other statement, declaration or directive outside of the single TEAMS construct" } |
| 6 |
!$omp teams distribute dist_schedule (static,n+4) ! { dg-error "OMP TARGET region at .1. with a nested TEAMS at .2. may not contain any other statement, declaration or directive outside of the single TEAMS construct" } |
| 7 |
do i = 1, 8 |
| 8 |
end do |
| 9 |
!$omp teams distribute dist_schedule (static,n+4) |
| 10 |
do i = 1, 8 |
| 11 |
end do |
| 12 |
!$omp end target |
| 13 |
end |