OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_comp_26.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR 46841: [F03] ICE on allocating array of procedure pointers
4
!
5
! Contributed by Martien Hulsen 
6
 
7
  type vfunc_p
8
    procedure (dum_vfunc), pointer, nopass :: p => null()
9
  end type vfunc_p
10
 
11
  type(vfunc_p), allocatable, dimension(:) :: vfunc1
12
 
13
  allocate(vfunc1(10))
14
 
15
contains
16
 
17
  function dum_vfunc ()
18
    real, dimension(2) :: dum_vfunc
19
    dum_vfunc = 0
20
  end function dum_vfunc
21
 
22
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.