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 libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
open_new_segv.f90
blob
56cd1afd9b52a403dbdbb25e9e9421df5b11784f
1
! { dg-do run }
2
! PR 64770 SIGSEGV when trying to open an existing file with status="new"
3
program
pr64770
4
implicit none
5
! Make sure pr64770test.dat exists
6
open
(
99
,
file
=
"pr64770test.dat"
,
status
=
"replace"
)
7
close
(
99
)
8
open
(
99
,
file
=
"pr64770test.dat"
,
access
=
"stream"
,
form
=
"unformatted"
, &
9
status
=
"new"
)
10
end program
pr64770