read_eor.f90

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

F90
15
字号
! { dg-do run }! PR24489 Assure that read does not go past the end of record. The width of! the format specifier is 8, but the internal unit record length is 4 so only! the first 4 characters should be read.! Contributed by Jerry DeLisle <jvdelisle@verizon.net>.program pr24489  character*4, dimension(8) :: abuf = (/"0123","4567","89AB","CDEF", &                                        "0123","4567","89AB","CDEF"/)  character*4, dimension(2,4) :: buf  character*8 :: a  equivalence (buf,abuf)  read(buf, '(a8)') a  if (a.ne.'0123') call abort()end program pr24489

⌨️ 快捷键说明

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