com_block_driver.f90

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

F90
37
字号
! { dg-do run }module myComModule  use, intrinsic :: iso_c_binding  common /COM2/ R2, S2  real(c_double) :: r2  real(c_double) :: s2   bind(c) :: /COM2/end module myComModulemodule comBlockTests  use, intrinsic :: iso_c_binding  use myComModule  implicit none  common /COM/ R, S  real(c_double) :: r  real(c_double) :: s   bind(c) :: /COM/  contains  subroutine testTypes()    implicit none  end subroutine testTypesend module comBlockTestsprogram comBlockDriver  use comBlockTests    call testTypes()end program comBlockDriver! { dg-final { cleanup-modules "mycommodule comblocktests" } }

⌨️ 快捷键说明

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