view gcc/testsuite/gfortran.dg/finalize_24.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
!
! PR fortran/58880
!
! Contributed by Andrew Benson
!

module gn
  type sl
     integer, allocatable, dimension(:) :: lv
   contains
     final :: sld
  end type sl
  type :: nde
     type(sl) :: r
  end type nde
contains
  subroutine ndm(s)
    type(nde), intent(inout) :: s
    type(nde)                :: i    
    i=s
  end subroutine ndm
  subroutine sld(s)
    implicit none
    type(sl), intent(inout) :: s
    return
  end subroutine sld
end module gn