3 ! Contributed by Nathanael Huebbe
4 ! Check fix for PR/70842
8 TYPE, ABSTRACT :: t_Intermediate
9 END TYPE t_Intermediate
11 type, extends(t_Intermediate) :: t_Foo
12 character(:), allocatable :: string
15 class(t_Foo), allocatable :: obj
18 obj%string = "blabarfoo"
25 class(t_Intermediate), target :: me
27 class(*), pointer :: alias
31 if (len(me%string) /= 9) STOP 1
37 if (len(alias%string) /= 9) STOP 2