summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/backspace_7.f90
blob: 09cce731a90de8528f45d475e09875160f94fe66 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do run { target fd_truncate } }
!pr18284 BACKSPACE broken
       open(unit=10,access='SEQUENTIAL',status='SCRATCH')
       do I = 1,200
         write(10,*)I
       end do
       backspace(10)
       backspace(10)
       read(10,*)I
       if (I.NE.199) call abort
       end