summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/endfile_2.f90
blob: 7f366f1e0336f0a6b2a81a6b00639547d42d139b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { 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
      end