aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/advance_4.f90
blob: 633f90a583abdbd073f8244bf8fa7358fc55c3e3 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do run { target fd_truncate } }
! PR31207 Last record truncated for read after short write
program main
  character(10) :: answer
  write (12,'(A,T2,A)',advance="no") 'XXXXXX','ABCD'
  close (12)
  read (12, '(6A)') answer
  close (12, status="delete")
  if (answer /= "XABCDX") call abort()
end program main