PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / eof_5.f90
blob3efcc125561498b03c8cf17b0ae1d733f10c23bc
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) STOP 1
17 read(inp,*,iostat=ios) a1, a2, a3, a4
18 if (ios == 0) STOP 2
19 ! write(*,*) 'IOSTAT=',ios
20 end program iotest