view gcc/testsuite/gfortran.dg/eor_handling_3.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do run }
! PR 19595:  Handle end-of-record condition with pad=yes (default)
program main
  integer i1, i2
  open(77,status='scratch')
  write (77,'(A)') '123','456'
  rewind(77)
  read(77,'(2I2)',advance='no',eor=100) i1,i2
  STOP 1
100 continue
  if (i1 /= 12 .or. i2 /= 3) STOP 2
  close(77)
end program main