Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/proc_ptr_23.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! ! PR 41106: [F03] Procedure Pointers with CHARACTER results ! ! Contributed by Janus Weil <janus@gcc.gnu.org> character(len=5) :: str procedure(character(len=5)), pointer :: pp pp => abc print *,pp() str = pp() if (str/='abcde') STOP 1 contains function abc() character(len=5) :: abc abc = 'abcde' end function abc end