der_init_5.f90
来自「linux下编程用 编译软件」· F90 代码 · 共 17 行
F90
17 行
! Check that null initialization of pointer components works.! PR 15969 prompted these! the commented out tests are cases where we still failprogram der_init_5 type t type(t), pointer :: a => NULL() real, pointer :: b => NULL() character, pointer :: c => NULL() integer, pointer, dimension(:) :: d => NULL() end type t type (t) :: p if (associated(p%a)) call abort() if (associated(p%b)) call abort()! if (associated(p%c)) call abort() if (associated(p%d)) call abort()end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?