1 ! { dg
-do run
{ target fd_truncate
} }
2 ! PR
19872 - closed and re
-opened file not overwriten
6 open
(1,form
='FORMATTED',status
='UNKNOWN')
7 write(1,'("1 2 3 4 5 6 7 8 9")')
9 open
(1,form
='FORMATTED')
10 write(1,'("9 8 7 6")')
12 open
(1,form
='FORMATTED')
14 if(i
(1).ne
.9.or
.i
(2).ne
.8.or
.i
(3).ne
.7.or
.i
(4).ne
.6)call abort
16 ! should only be able
to read one line from the file
19 close
(1,STATUS
='delete')