func_decl_2.f90

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

F90
22
字号
! { dg-do compile }! Test fix for PR16943 in which the double typing of! N caused an error.  This is a common extension to the! F95 standard, so the error is only thrown for -std=f95! or -pedantic.!! Contributed by Paul Thomas  <pault@gcc.gnu.org>!  program bug8     implicit none     stop " OK. "   contains     integer function bugf(M) result (N)       integer, intent (in) :: M       integer :: N ! { dg-warning "already has basic type of INTEGER" }      N = M       return     end function bugf  end program bug8

⌨️ 快捷键说明

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