PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / zero_sized_5.f90
blob49a5d548df088b69e59f48c985338825b12ac146
1 ! { dg-do run }
2 ! These used to segfault.
3 program main
4 real, dimension(1,0) :: a, b, c
5 integer, dimension(0) :: j
6 a = 0
7 c = 0
8 b = cshift (a,1)
9 b = cshift (a,j)
10 b = eoshift (a,1)
11 b = eoshift (a,1,boundary=c(1,:))
12 b = eoshift (a, j, boundary=c(1,:))
13 end program main