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