URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_result_5.f90] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
!
! PR 40541: Assignment checking for proc-pointer => proc-ptr-returning-function()
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
program test
procedure(real), pointer :: p
p => f() ! { dg-error "Type/rank mismatch in return value" }
contains
function f()
pointer :: f
interface
logical(1) function f()
end function
end interface
f = .true._1
end function f
end program test
Go to most recent revision | Compare with Previous | Blame | View Log