list_read_1.f90

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

F90
23
字号
! { dg-do run }! Program to test terminators in list-directed inputprogram list_read_1  character(len=5) :: s  open (unit=11, status="SCRATCH")  ! The / terminator was causing the next value to be skipped.  write (11, '(a)') " 42 /"  write (11, '(a)') " 43"  write (11, '(a)') " 44"  rewind(11)  read (11, *) i  if (i .ne. 42) call abort  read (11, *) i  if (i .ne. 43) call abort  read (11, *) i  if (i .ne. 44) call abort  close (11)end

⌨️ 快捷键说明

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