host_assoc_types_1.f90

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

F90
19
字号
! { dg-do compile }! Tests the fix for PR29232, in which the invalid code below was not! diagnosed.!! Contributed by Tobias Burnus  <tobias.burnus@physik.fu-berlin.de>!MODULE test     TYPE vertex           INTEGER :: k     END TYPE vertexCONTAINS     SUBROUTINE S1()         TYPE(vertex) :: a  ! { dg-error "cannot be host associated" }         vertex : DO i=1,2  ! { dg-error "incompatible object of the same name" }         ENDDO vertex     END SUBROUTINEEND MODULE test! { dg-final { cleanup-modules "test" } }

⌨️ 快捷键说明

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