Retro68/gcc/gcc/testsuite/gfortran.dg/endfile_4.f90
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

9 lines
293 B
Fortran

! { 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