empty_format_1.f90

来自「用于进行gcc测试」· F90 代码 · 共 22 行

F90
22
字号
! { dg-do run }! PR 17709! We weren't resetting the internal EOR flag correctly, so the second read! wasn't advancing to the next line.program main  integer io_unit  character*20 str  io_unit = 10  open (unit=io_unit,status='scratch',form='formatted')  write (io_unit, '(A)') "Line1"  write (io_unit, '(A)') "Line2"  write (io_unit, '(A)') "Line3"  rewind (io_unit)  read (io_unit,'(A)') str  if (str .ne. "Line1") call abort  read (io_unit,'()')  read (io_unit,'(A)') str  if (str .ne. "Line3") call abort  close(unit=io_unit)end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?