function_kinds_3.f90
来自「用于进行gcc测试」· F90 代码 · 共 32 行
F90
32 行
! { dg-do compile }!! PR fortran/34254!! The character-kind parameter was not accepted.!module m integer, parameter :: char_t = kind('a')end module mcharacter(1,char_t) function test1() use m test1 = 'A'end function test1character(len=1,kind=char_t) function test2() use m test2 = 'A'end function test2character(kind=char_t,len=1) function test3() use m test3 = 'A'end function test3character(1,kind=char_t) function test4() use m test4 = 'A'end function test4! { dg-final { cleanup-modules "m" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?