view gcc/testsuite/gfortran.dg/proc_ptr_comp_36.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 54107: [4.8 Regression] Memory hog with abstract interface
!
! Contributed by Arjen Markus <arjen.markus895@gmail.com>

  implicit none 
  type computation_method 
    character(len=40)                           :: name 
    procedure(compute_routine), pointer, nopass :: compute 
  end type 
  abstract interface 
    subroutine compute_routine( param_value, zfunc, probability ) 
      real, dimension(:), intent(in) :: param_value 
      procedure(compute_routine)     :: zfunc 
      real, intent(in)               :: probability 
    end subroutine 
  end interface 
end