URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [alloc_comp_class_1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! Test the fix for PR43895, in which the dummy 'a' was not! dereferenced for the deallocation of component 'a', as required! for INTENT(OUT).!! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>!module d_mat_modtype :: base_sparse_matend type base_sparse_mattype, extends(base_sparse_mat) :: d_base_sparse_matinteger :: iend type d_base_sparse_mattype :: d_sparse_matclass(d_base_sparse_mat), allocatable :: aend type d_sparse_matend module d_mat_moduse d_mat_modtype(d_sparse_mat) :: ballocate (b%a)b%a%i = 42call bug14 (b)if (allocated (b%a)) call abortcontainssubroutine bug14(a)implicit nonetype(d_sparse_mat), intent(out) :: aend subroutine bug14end! { dg-final { cleanup-modules "d_mat_mod " } }
