Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gfortran.dg / proc_ptr_comp_26.f90
blob0b97e09e03b78491ff71b34080cfaaf6a7843b42
1 ! { dg-do compile }
3 ! PR 46841: [F03] ICE on allocating array of procedure pointers
5 ! Contributed by Martien Hulsen <m.a.hulsen@tue.nl>
7 type vfunc_p
8 procedure (dum_vfunc), pointer, nopass :: p => null()
9 end type vfunc_p
11 type(vfunc_p), allocatable, dimension(:) :: vfunc1
13 allocate(vfunc1(10))
15 contains
17 function dum_vfunc ()
18 real, dimension(2) :: dum_vfunc
19 dum_vfunc = 0
20 end function dum_vfunc
22 end