repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
read_x_eof.f90
blob
8ca3ebed735f518c44d9e8597776d173e9c5cb28
1
! { dg-do run }
2
! PR43265 No EOF condition if reading with '(x)' from an empty file
3
! Test case from the reporter.
4
program
pr43265
5
implicit none
6
integer
::
i
7
open
(
23
,
status
=
"scratch"
)
8
write
(
23
,
'(a)'
)
"Line 1"
9
write
(
23
,
'(a)'
)
"Line 2"
10
write
(
23
,
'(a)'
)
"Line 3"
11
rewind
(
23
)
12
do
i
=
1
,
10
13
read
(
23
,
'(1x)'
,
end
=
12
)
14
enddo
15
12
if
(
i
.
ne
.4
)
STOP
1
16
end