fmt_t_3.f90

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

F90
16
字号
! { dg-do run }! PR31051 bug with x and t format descriptors.! Test case prepared by Jerry DeLisle  <jvdelisle@gcc.gnu.org> from PR.program t   integer, parameter :: n = 9   character(len=40) :: fmt   character(len=2), dimension(n) :: y   open(unit=10, status="scratch")   y = 'a '   fmt = '(a,1x,(t7, 3a))'   write(10, fmt) 'xxxx', (y(i), i = 1,n)   rewind(10)   read(10, '(a)') fmt   if (fmt.ne."xxxx  a a a") call abort()end program t

⌨️ 快捷键说明

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