OLD | NEW |
1 ! { dg-do run { target fd_truncate } } | 1 ! { dg-do run } |
2 ! PR33307 I/O read/positioning problem - in BACKSPACE | 2 ! PR33307 I/O read/positioning problem - in BACKSPACE |
3 ! Test case devloped from test in PR by Jerry DeLisle <jvdelisle@gcc.gnu.org> | 3 ! Test case devloped from test in PR by Jerry DeLisle <jvdelisle@gcc.gnu.org> |
4 program gfcbug69b | 4 program gfcbug69b |
5 ! Modified example program | 5 ! Modified example program |
6 implicit none | 6 implicit none |
7 integer, parameter :: iunit = 63 | 7 integer, parameter :: iunit = 63 |
8 integer :: istat, k, ios | 8 integer :: istat, k, ios |
9 character(len=20) :: line, message | 9 character(len=20) :: line, message |
10 | 10 |
11 open (iunit) | 11 open (iunit) |
(...skipping 16 matching lines...) Expand all Loading... |
28 read (iunit,'(a)',iostat=ios) line | 28 read (iunit,'(a)',iostat=ios) line |
29 if (ios /= 0) call abort | 29 if (ios /= 0) call abort |
30 read (iunit,'(a)',iostat=ios) line | 30 read (iunit,'(a)',iostat=ios) line |
31 if (ios /= 0) call abort | 31 if (ios /= 0) call abort |
32 read (iunit,'(a)',iostat=ios) line | 32 read (iunit,'(a)',iostat=ios) line |
33 if (ios /= 0) call abort | 33 if (ios /= 0) call abort |
34 read (iunit,'(a)',iostat=ios) line | 34 read (iunit,'(a)',iostat=ios) line |
35 if (ios /= -1) call abort | 35 if (ios /= -1) call abort |
36 close (iunit, status="delete") | 36 close (iunit, status="delete") |
37 end program gfcbug69b | 37 end program gfcbug69b |
OLD | NEW |