PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / eof_2.f90
blobcf8f09bbc3f9689b0caa3645ca451c317a1349d0
1 ! { dg-do run }
2 ! Check that end= and iostat= specifiers are honoured when both are used
3 program eof_2
4 integer ierr, i
6 open (11, status="SCRATCH")
7 ierr = 0
8 read (11, *, end=10, iostat=ierr) i
9 STOP 1
10 10 continue
11 if (ierr .ge. 0) STOP 2
12 end program