summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/allocatable_scalar_10.f90
blob: 0d3be8845f92c8185100b1b6a322b0e3fc0b9676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do run }
!
! PR 42647: Missed initialization/dealloc of allocatable scalar DT with allocatable component
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>

type t
 integer, allocatable :: p
end type t
type(t), allocatable :: a

deallocate(a,stat=istat)
if (istat == 0) call abort()
end