Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gfortran.dg / g77 / f77-edit-i-in.f
blob49eb41608bb2aaae7638f35005b92485f53758d4
1 C Test Fortran 77 I edit descriptor for input
2 C (ANSI X3.9-1978 Section 13.5.9.1)
4 C Origin: David Billinghurst <David.Billinghurst@riotinto.com>
6 C { dg-do run }
8 integer i,j
9 character*10 buf
11 write(buf,'(A)') '1 -1'
13 read(buf,'(I1)') i
14 if ( i.ne.1 ) call abort()
16 read(buf,'(1X,I1)') i
17 if ( i.ne.0 ) call abort()
19 read(buf,'(1X,I1,1X,I2)') i,j
20 if ( i.ne.0 .and. j.ne.-1 ) call abort()
22 end