2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / zero_stride_1.f90
blobc5f6cc724a1bbf050b0deb29d25220a4d88dad0b
1 ! { dg-do compile }
2 ! PR 50130 - this caused an ICE. Test case supplied by Joost
3 ! VandeVondele.
4 integer, parameter :: a(10)=0
5 integer, parameter :: b(10)=a(1:10:0) ! { dg-error "Illegal stride of zero" }
6 END