⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 read_noadvance.f90

📁 用于进行gcc测试
💻 F90
字号:
! { dg-do run }! pr24719, non-advancing read should read more than one line! test contributed by jerry delisle <jvdelisle@gcc.gnu.org>      implicit none      character(1) :: chr      character(20) :: correct = 'foo: bar 123abc'      integer :: i      open(unit = 11, status = "scratch", action="readwrite")      write(11,'(a)') "foo: bar"      write(11,'(a)') "123abc"      rewind(11)      i = 0      do        i = i + 110      read(unit = 11, fmt = '(a)', advance = 'no', end = 99, eor = 11) chr        if (chr.ne.correct(i:i)) call abort()        cycle11      continue      end do99    close(11)      end

⌨️ 快捷键说明

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