view gcc/testsuite/gfortran.dg/endfile_2.f90 @ 120:f93fa5091070

fix conv1.c
author mir3636
date Thu, 08 Mar 2018 14:53:42 +0900
parents 04ced10e8804
children 84e7813d76e9
line wrap: on
line source

! { dg-do run }
! pr18778 abort on endfile without opening unit 
      program test
      implicit none
      integer i
      endfile(8)
      rewind(8)
      read(8,end=0023)i
      call abort ! should never get here
      stop
 0023 continue
      close(8,status='delete')
      end