summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/endfile_3.f90
blob: 0c413145c5d3146c5950a598729e4718ca64e33c (plain)
1
2
3
4
5
6
7
8
9
! { dg-do run }
! pr44477 READ/WRITE not allowed after ENDFILE 
!-------------------------------------------
  open(10, form='formatted', &
    action='write', position='rewind', status="scratch")
  endfile(10)
  write(10,'(a)') "aa" ! { dg-shouldfail "Cannot perform ENDFILE" }
end