Retro68/gcc/gcc/testsuite/gfortran.dg/warn_conversion_10.f90
Wolfgang Thaller 6fbf4226da gcc-9.1
2019-06-20 20:10:10 +02:00

9 lines
269 B
Fortran

! { dg-do compile }
! { dg-options "-fno-range-check -Wconversion" }
! PR 88298 - this used to warn unnecessarily. Original test case by
! Harald Anlauf.
subroutine bug (j, js)
integer :: j, js(3,2)
js(:,:) = cshift (js(:,:), shift=j, dim=1)
end subroutine bug