nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr110415.f90
blobf647cc4c52cb3b1c6a16652adfb636612af73418
1 ! { dg-do run }
3 ! Contributed by Brad Richardson <everythingfunctional@protonmail.com>
5 type, abstract :: p
6 end type p
8 type, extends(p) :: c
9 end type c
11 class(p), allocatable :: a
13 a = func()
14 contains
15 function func() result(a)
16 class(p), allocatable :: a
18 a = c()
19 end function func
20 end program