summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/der_ptr_component_1.f90
blob: 0f76cc15875b171a317015bfa08423a68b45998f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { 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