use_allocated_1.f90

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

F90
21
字号
! { dg-do run }! PR17678! We were incorrectly setting use-associated variables to unallocated! on procedure entry.module foo  integer, dimension(:), allocatable :: barend moduleprogram main  use foo  allocate (bar(10))  call initend program mainsubroutine init  use foo  if (.not.allocated(bar)) call abortend subroutine init! { dg-final { cleanup-modules "foo" } }

⌨️ 快捷键说明

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