2 ! Test the fix for PR38802, in which the nulling of the result 'p'
3 ! in 'a_fun' would cause a segfault.
5 ! Posted on the gfortran list by Marco Restelli http://gcc.gnu.org/ml/fortran/2009-01/
10 public :: a_fun, t_1, t_2
16 type(t_1), allocatable :: mons(:)
19 function a_fun(r) result(p)
20 integer, intent(in) :: r
27 use mod_a, only: a_fun, t_1, t_2
31 if (any (x(1)%mons%coeff .ne. 99)) call abort
33 ! { dg-final { cleanup-modules "mod_a" } }