2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / eof_5.f90
blob88671ba23746f003affba358f1104357f54a2a9e
1 ! { dg-do run }
3 ! PR fortran/56696
5 ! Contributed by Keith Refson
8 program iotest
9 character(len=258) :: inp = ' 1.0 1.0 1.0'
10 character(len=7) :: inp2 = '1 2 3 4'
11 integer :: ios
12 real :: a1, a2, a3, a4
14 read(inp2,*,iostat=ios) a1, a2, a3, a4
15 if (ios /= 0) call abort ()
17 read(inp,*,iostat=ios) a1, a2, a3, a4
18 if (ios == 0) call abort ()
19 ! write(*,*) 'IOSTAT=',ios
20 end program iotest