elemental_pointer_1.f90
来自「用于进行gcc测试」· F90 代码 · 共 14 行
F90
14 行
! { dg-do compile }! Tests the fix for pr20875.! Note 12.7.1 "For a function, the result shall be scalar and shall not have the POINTER attribute."MODULE TestCONTAINS ELEMENTAL FUNCTION LL(I) INTEGER, INTENT(IN) :: I INTEGER :: LL POINTER :: LL ! { dg-error " POINTER attribute conflicts with ELEMENTAL attribute" } END FUNCTION LLEND MODULE Test! { dg-final { cleanup-modules "Test" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?