generic_11.f90
来自「用于进行gcc测试」· F90 代码 · 共 32 行
F90
32 行
! { dg-do compile }! Test the fix for PR25135 in which the ambiguity between subroutine! foo in m_foo and interface foo in m_bar was not recognised.!!Contributed by Yusuke IGUCHI <iguchi@coral.t.u-tokyo.ac.jp>!module m_foocontains subroutine foo print *, "foo" end subroutineend modulemodule m_bar interface foo module procedure bar end interfacecontains subroutine bar print *, "bar" end subroutineend moduleuse m_foouse m_barcall foo ! { dg-error "is an ambiguous reference" } end! { dg-final { cleanup-modules "m_foo m_bar" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?