blob: 351643781d0da94695f14cdc48a6a68bfd31b0b2 [file] [log] [blame]
! { dg-do run { target fd_truncate } }
! 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