]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gfortran.dg/unlimited_polymorphic_8.f90
Fortran: Fix bugs and missing features in finalization [PR37336]
[gcc.git] / gcc / testsuite / gfortran.dg / unlimited_polymorphic_8.f90
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
3 !
4 ! PR fortran/55854
5 !
6 ! Contributed by Damian Rouson
7 !
8
9 type foo
10 class(*), allocatable :: x
11 end type
12 contains
13 subroutine bar(this)
14 type(foo), intent(out) :: this
15 end
16 end
17
18 ! { dg-final { scan-tree-dump-times "foo.1.x._data = 0B;" 1 "original" } }
19 ! { dg-final { scan-tree-dump-times "foo.1.x._vptr = .* &__vtab__STAR;" 1 "original" } }
This page took 0.037237 seconds and 5 git commands to generate.