re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git] / gcc / testsuite / gfortran.dg / unlimited_polymorphic_8.f90
blob46b9a9f65182ee8559d5224d502d04ecf158f777
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR fortran/55854
6 ! Contributed by Damian Rouson
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
18 ! { dg-final { scan-tree-dump-times "foo.0.x._data = 0B;" 1 "original" } }
19 ! { dg-final { scan-tree-dump-times "foo.0.x._vptr = .* &__vtab__STAR;" 1 "original" } }