view gcc/testsuite/gfortran.dg/der_ptr_component_1.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! PR 19929
! Deallocation of pointer components of derived type arrays
program der_ptr_component
    type :: t
        integer, pointer :: p
    end type t
    type(t) :: a(1)

    allocate(a(1)%p)
    deallocate(a(1)%p)

end program der_ptr_component