! { dg-do run } ! PR 49296 List formatted read of file without EOR marker (\n). program read_list_eof_1 implicit none integer, parameter :: strmx = 255 character(len=strmx) :: s1, s2 call genfil () open (unit=20, file='read.dat', form='FORMATTED', action='READ', & status='OLD') read (20, fmt=*) s1, s2 close (20, status='delete') if (trim(s1) /= "abcd" .or. trim(s2) /= "efgh") then call abort () end if contains subroutine genfil open(10, file='read.dat', form='unformatted', action='write', & status='replace', access='stream') write(10) 'abcd efgh' close(10) end subroutine genfil end program read_list_eof_1