annotate gcc/testsuite/gfortran.dg/finalize_16.f90 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! { dg-options "-fcheck=all" }
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! PR fortran/57542
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6 ! Contributed by Salvatore Filippone
kono
parents:
diff changeset
7 !
kono
parents:
diff changeset
8 module type_mod
kono
parents:
diff changeset
9 type inner
kono
parents:
diff changeset
10 end type inner
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 type outer
kono
parents:
diff changeset
13 class(inner), allocatable :: item
kono
parents:
diff changeset
14 end type outer
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 type container
kono
parents:
diff changeset
17 class(outer), allocatable :: item
kono
parents:
diff changeset
18 end type container
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 type maintype
kono
parents:
diff changeset
21 type(container), allocatable :: v(:)
kono
parents:
diff changeset
22 end type maintype
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 end module type_mod
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 subroutine testfinal(var)
kono
parents:
diff changeset
27 use type_mod
kono
parents:
diff changeset
28 type(maintype), intent(inout) :: var
kono
parents:
diff changeset
29 ! A real code would obviously check
kono
parents:
diff changeset
30 ! this is really allocated
kono
parents:
diff changeset
31 deallocate(var%v(1)%item%item)
kono
parents:
diff changeset
32 end subroutine testfinal