Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/proc_ptr_result_5.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
! { 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 mismatch in function result" } contains function f() pointer :: f interface logical(1) function f() end function end interface f = .true._1 end function f end program test