]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gfortran.dg/unlimited_polymorphic_8.f90
46b9a9f65182ee8559d5224d502d04ecf158f777
[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.0.x._data = 0B;" 1 "original" } }
19 ! { dg-final { scan-tree-dump-times "foo.0.x._vptr = .* &__vtab__STAR;" 1 "original" } }
This page took 0.038421 seconds and 4 git commands to generate.