annotate gcc/testsuite/gfortran.dg/endfile.f @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! PR25550 file data corrupted after reading end of file.
kono
parents:
diff changeset
3 ! Derived from example given in PR from Dale Ranta.
kono
parents:
diff changeset
4 ! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
5 integer data
kono
parents:
diff changeset
6 data=-1
kono
parents:
diff changeset
7 open(unit=11,status='scratch',form='unformatted')
kono
parents:
diff changeset
8 write(11)data
kono
parents:
diff changeset
9 read(11,end=1000 )data
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
10 STOP 1
111
kono
parents:
diff changeset
11 1000 continue
kono
parents:
diff changeset
12 rewind (11)
kono
parents:
diff changeset
13 read(11)data
kono
parents:
diff changeset
14 1001 continue
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
15 if(data.ne.-1) STOP 1
111
kono
parents:
diff changeset
16 end
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18