Debian Codegraph @

gcc/testsuite/gfortran.dg/allocatable_scalar_10.f90

raw
1 ! { dg-do run }
2 !
3 ! PR 42647: Missed initialization/dealloc of allocatable scalar DT with allocatable component
4 !
5 ! Contributed by Tobias Burnus <[email protected]>
6
7 type t
8 integer, allocatable :: p
9 end type t
10 type(t), allocatable :: a
11
12 deallocate(a,stat=istat)
13 if (istat == 0) STOP 1
14 end