char_component_initializer_1.f90

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

F90
19
字号
! { dg-do run }! Check the fix for PR31487 in which the derived type default initializer! would be padded out with nulls instead of spaces.!! Reported by Harald Anlauf <anlauf@gmx.de>!program gfcbug62  implicit none  character(len=16) ::    tdefi(2) = (/'0z1jan0000','1hr       '/)  type t_ctl     character(len=16) :: tdefi(2) = (/'0z1jan0000','1hr       '/)  end type t_ctl  type(t_ctl) :: ctl  integer     :: i,k  if (tdefi(1) .ne. ctl%tdefi(1)) call abort ()end program gfcbug62

⌨️ 快捷键说明

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