pr65597.f90 377 B

12345678910111213141516171819202122
  1. ! PR fortran/65597
  2. ! { dg-do run }
  3. integer :: i, a(151)
  4. a(:) = 0
  5. !$omp do simd
  6. do i = 1, 151, 31
  7. a(i) = a(i) + 1
  8. end do
  9. !$omp do simd linear (i: 31)
  10. do i = 1, 151, 31
  11. a(i) = a(i) + 1
  12. end do
  13. do i = 1, 151
  14. if (mod (i, 31) .eq. 1) then
  15. if (a(i) .ne. 2) call abort
  16. else
  17. if (a(i) .ne. 0) call abort
  18. end if
  19. end do
  20. end