view gcc/testsuite/gfortran.dg/proc_decl_19.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! 
! PR 36426
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>

abstract interface
  function foo(x)
    character(len=*) :: x
    character(len=len(x)) :: foo
  end function foo
end interface
procedure(foo) :: bar

abstract interface
  character function abs_fun()
  end function
end interface
procedure(abs_fun):: x

character(len=20) :: str
str = bar("Hello")
end