summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/zero_stride_1.f90
blob: c5f6cc724a1bbf050b0deb29d25220a4d88dad0b (plain)
1
2
3
4
5
6
7
! { dg-do compile }
!  PR 50130 - this caused an ICE.  Test case supplied by Joost
!  VandeVondele.
integer, parameter :: a(10)=0
integer, parameter :: b(10)=a(1:10:0) ! { dg-error "Illegal stride of zero" }
END