URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_comp_19.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }!! PR 41139: [4.5 Regression] a procedure pointer call as actual argument!! Contributed by Janus Weil <janus@gcc.gnu.org>PROGRAM testtype :: tPROCEDURE(three), POINTER, nopass :: fend typetype(t) :: ological :: go%f => threeg=greater(4.,o%f())if (.not. g) call abort()CONTAINSREAL FUNCTION three()three = 3.END FUNCTIONLOGICAL FUNCTION greater(x,y)REAL, INTENT(in) :: x, yprint *,"greater:",x,ygreater = (x > y)END FUNCTION greaterEND PROGRAM test
