host_used_types_1.f90

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

F90
43
字号
! { dg-do compile }! Tests the fix for PR25532, which was a regression introduced by! the fix for PR20244.!! Contributed by Erik Edelmann  <eedelman@gcc.gnu.org>module ModelParams        implicit none        type ReionizationParams             real   :: fraction        end type ReionizationParams        type CAMBparams             type(ReionizationParams) :: Reion         end type CAMBparams        type(CAMBparams) CPend module ModelParamsmodule ThermoData    use ModelParams    implicit nonecontains    subroutine inithermo()        use ModelParams        if (0 < CP%Reion%fraction) then        end if    end subroutine inithermo! The bug expressed itself in this subroutine because the component type! information was not being copied from the parent namespace.    subroutine SetTimeSteps        if (0 < CP%Reion%fraction) then        end if    end subroutine SetTimeStepsend module ThermoData! { dg-final { cleanup-modules "ModelParams ThermoData" } }

⌨️ 快捷键说明

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