Retro68/gcc/libgomp/testsuite/libgomp.fortran/pr46753.f90

18 lines
300 B
Fortran
Raw Normal View History

2012-03-27 23:13:14 +00:00
! PR fortran/46753
! { dg-do run }
integer :: i, j
j = 0
!$omp parallel do reduction(+:j)
do i = 2147483636, 2147483646
j = j + 1
end do
2018-12-28 15:30:48 +00:00
if (j.ne.11) STOP 1
2012-03-27 23:13:14 +00:00
j = 0
!$omp parallel do reduction(+:j)
do i = -2147483637, -2147483647, -1
j = j + 1
end do
2018-12-28 15:30:48 +00:00
if (j.ne.11) STOP 2
2012-03-27 23:13:14 +00:00
end