strcommon_1.f90

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

F90
29
字号
! PR14081 character variables in common blocks.subroutine test1  implicit none  common /block/ c  character(len=12) :: c  if (c .ne. "Hello World") call abortend subroutinesubroutine test2  implicit none  common /block/ a  character(len=6), dimension(2) :: a  if ((a(1) .ne. "Hello") .or. (a(2) .ne. "World")) call abortend subroutineprogram strcommon_1  implicit none  common /block/ s, t  character(len=6) :: s, t  s = "Hello "  t = "World "  call test1  call test2end program

⌨️ 快捷键说明

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