2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocatable_scalar_10.f90
blob0d3be8845f92c8185100b1b6a322b0e3fc0b9676
1 ! { dg-do run }
3 ! PR 42647: Missed initialization/dealloc of allocatable scalar DT with allocatable component
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
7 type t
8 integer, allocatable :: p
9 end type t
10 type(t), allocatable :: a
12 deallocate(a,stat=istat)
13 if (istat == 0) call abort()
14 end