pr63938-1.f90 244 B

123456789101112131415
  1. ! PR fortran/63938
  2. ! { dg-do run }
  3. program pr63938_1
  4. integer :: i, x(1)
  5. x(1) = 0
  6. !$omp parallel do
  7. do i = 1, 1000
  8. !$omp atomic
  9. x(1) = x(1) + 1
  10. end do
  11. !$omp end parallel do
  12. if (x(1) .ne. 1000) call abort
  13. end program pr63938_1