view gcc/testsuite/gfortran.dg/impl_do_var_data.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children 84e7813d76e9
line wrap: on
line source

! { dg-do run }
! PR 80442
! This test case used to produce an bogus error
! about the variables being below the lower
! array bounds
program main
    implicit none
    integer:: i
    integer, dimension(3):: A
    data (A(i:i+2:i+1), i=1,2) /1, 2, 3/
    if(any(A .ne. [1,3,2])) call abort()
end program