entry_7.f90

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

F90
26
字号
! { dg-do compile }! Check that PR20877 and PR25047 are fixed by the patch for! PR24558. Both modules would emit the error:! insert_bbt(): Duplicate key found!! because of the prior references to a module function entry.!! Contributed by Joost VandeVondele  <jv244@cam.ac.uk>!MODULE TTCONTAINS  FUNCTION K(I) RESULT(J)    ENTRY J() ! { dg-error "conflicts with PROCEDURE attribute" }  END FUNCTION K  integer function foo ()    character*4 bar ! { dg-error "type CHARACTER" }    foo = 21    return  entry bar ()    bar = "abcd"  end functionEND MODULE TT! { dg-final { cleanup-modules "TT" } }

⌨️ 快捷键说明

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