summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr47878.f90
blob: 9cc4a08603195f5c1ad87e45bad5593613671046 (plain)
1
2
3
4
5
6
7
8
9
10
! PR fortran/47878
! { dg-do run }
  integer :: a(5)
  open (99, recl = 40)
  write (99, '(5i3)') 1, 2, 3
  rewind (99)
  read (99, '(5i3)') a
  if (any (a.ne.(/1, 2, 3, 0, 0/))) call abort 
  close (99, status = 'delete')
end