Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gfortran.dg/backspace_10.f90 @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
15 close (iunit) | 15 close (iunit) |
16 ! Note: Failure occurred only when ACTION="read" was specified | 16 ! Note: Failure occurred only when ACTION="read" was specified |
17 open (iunit, action="read", status="old") | 17 open (iunit, action="read", status="old") |
18 | 18 |
19 read (iunit,'(a)',iostat=ios) line | 19 read (iunit,'(a)',iostat=ios) line |
20 if (ios /= 0) call abort | 20 if (ios /= 0) STOP 1 |
21 read (iunit,'(a)',iostat=ios) line | 21 read (iunit,'(a)',iostat=ios) line |
22 if (ios /= 0) call abort | 22 if (ios /= 0) STOP 2 |
23 read (iunit,'(a)',iostat=ios) line | 23 read (iunit,'(a)',iostat=ios) line |
24 if (ios /= 0) call abort | 24 if (ios /= 0) STOP 3 |
25 read (iunit,'(a)',iostat=ios) line | 25 read (iunit,'(a)',iostat=ios) line |
26 if (ios /= 0) backspace (iunit) | 26 if (ios /= 0) backspace (iunit) |
27 rewind (iunit) | 27 rewind (iunit) |
28 read (iunit,'(a)',iostat=ios) line | 28 read (iunit,'(a)',iostat=ios) line |
29 if (ios /= 0) call abort | 29 if (ios /= 0) STOP 4 |
30 read (iunit,'(a)',iostat=ios) line | 30 read (iunit,'(a)',iostat=ios) line |
31 if (ios /= 0) call abort | 31 if (ios /= 0) STOP 5 |
32 read (iunit,'(a)',iostat=ios) line | 32 read (iunit,'(a)',iostat=ios) line |
33 if (ios /= 0) call abort | 33 if (ios /= 0) STOP 6 |
34 read (iunit,'(a)',iostat=ios) line | 34 read (iunit,'(a)',iostat=ios) line |
35 if (ios /= -1) call abort | 35 if (ios /= -1) STOP 7 |
36 close (iunit, status="delete") | 36 close (iunit, status="delete") |
37 end program gfcbug69b | 37 end program gfcbug69b |