module_equivalence_2.f90
来自「用于进行gcc测试」· F90 代码 · 共 26 行
F90
26 行
! { dg-do run }! Tests the fix for PR27269 and PR27xxx.! The former caused a segfault in trying to process! module b, with an unused equivalence in a. The latter! produced an assembler error due to multiple declarations! for a module equivalence, when one of the variables was! initialized, as M in module a.!module a integer, parameter :: dp = selected_real_kind (10) real(dp) :: reM, M = 1.77d0 equivalence (M, reM)end module amodule b use a, only : dpend module b use a use b if (reM .ne. 1.77d0) call abort () reM = 0.57d1 if (M .ne. 0.57d1) call abort ()end! { dg-final { cleanup-modules "a b" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?