summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/execute/backspace.f90
blob: 8781fb2c99631c9f7650fcb05569d9778844f5fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! pr 15755
        implicit none
        character*1 C
        open(10)
        write(10,*)'a'
        write(10,*)'b'
        write(10,*)'c'
        rewind(10)
        read(10,*)C
        backspace(10) 
        read(10,*) C
        if (C.ne.'a') call abort
        close(10,STATUS='DELETE')
        end