Debian Codegraph @

gcc/testsuite/gfortran.dg/associate_52.f90

raw
1 ! { dg-do compile }
2 !
3 ! PR fortran/93427
4 !
5 ! Contributed by Andrew Benson
6 !
7 module a
8
9 type :: t
10 end type t
11
12 contains
13
14 recursive function b()
15 class(t), pointer :: b
16 type(t) :: c
17 allocate(t :: b)
18 select type (b)
19 type is (t)
20 b=c
21 end select
22 end function b
23
24 end module a