2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / zero_sized_4.f90
blobfe5f5f68241177d6a20d05e17ff61f78dc851f40
1 ! { dg-do run }
2 ! PR35991 run-time abort for CSHIFT of zero sized array
3 ! Divide by zero exception before the patch.
4 program try_gf0045
5 call gf0045( 9, 8)
6 end
8 subroutine GF0045(nf9,nf8)
9 REAL RDA(10)
10 REAL RDA1(0)
12 RDA(NF9:NF8) = CSHIFT ( RDA1 ,1)
14 END SUBROUTINE