summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/zero_sized_2.f90
blob: eda2de226733496caa72eccf938e8c851b7bc15f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! Tests the fix for PR30514 in which the bounds on m would cause an
! error and the rest would cause the compiler to go into an infinite
! loop.
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
!
integer :: i(2:0), j(1:0), m(1:-1)
integer, parameter :: k(2:0) = 0, l(1:0) = 0
i = k
j = l
m = 5
end