interface_8.f90
来自「用于进行gcc测试」· F90 代码 · 共 31 行
F90
31 行
! { dg-do compile }! One of the tests of the patch for PR30068.! Taken from comp.lang.fortran 3rd December 2006.!! Although the generic procedure is not referenced and it would! normally be permissible for it to be ambiguous, the USE, ONLY! statement is effectively a reference and is invalid.!module mod1 interface generic subroutine foo(a) real :: a end subroutine end interface genericend module mod1module mod2 interface generic subroutine bar(a) real :: a end subroutine end interface genericend module mod2program main use mod1, only: generic ! { dg-warning "has ambiguous interfaces" } use mod2end program main! { dg-final { cleanup-modules "mod1 mod2" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?