view gcc/testsuite/gfortran.dg/arrayio_14.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do run }
! PR61173.f90 Bogus END condition
module bd
  character(len=25, kind=1), dimension(:), allocatable, save :: source
  contains
    subroutine init_data
      allocate(source(2))
      source=["   1   1   1  ", "   4   4   4  "]
    end subroutine init_data
end module bd
program read_internal
  use bd
  integer :: x(6),i

  call init_data
  read(source,*) (x(i), i=1,6)
  if (any(x/=[1,1,1,4,4,4])) STOP 1
end program read_internal