2010-12-02 15:37:20 +01: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
|
2019-10-30 11:44:54 +00:00
|
|
|
if (j.ne.11) stop 1
|
2010-12-02 15:37:20 +01:00
|
|
|
j = 0
|
|
|
|
!$omp parallel do reduction(+:j)
|
|
|
|
do i = -2147483637, -2147483647, -1
|
|
|
|
j = j + 1
|
|
|
|
end do
|
2019-10-30 11:44:54 +00:00
|
|
|
if (j.ne.11) stop 2
|
2010-12-02 15:37:20 +01:00
|
|
|
end
|