open_readonly_1.f90
来自「用于进行gcc测试」· F90 代码 · 共 15 行
F90
15 行
! { dg-do run }! PR19451! Writing to a non-empty readonly file caused a segfault.! We were still trying to write the EOR after an error ocurredprogram prog open (unit=10, file='PR19451.dat') write (10,*) "Hello World" close (10) open (unit=10, file='PR19451.dat', action="read") write (10,*,err=20) "Hello World" call abort() 20 close (10, status='delete')end program
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?