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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_12.f90] - Blame information for rev 862

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
!
3
! PR 36704: Procedure pointer as function result
4
!
5
! Contributed by Janus Weil 
6
 
7
procedure(integer),pointer :: p
8
p => foo()
9
if (p(-1)/=1) call abort
10
contains
11
  function foo() result(bar)
12
    procedure(integer),pointer :: bar
13
    bar => iabs
14
  end function
15
end

powered by: WebSVN 2.1.0

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