3 ! PR 40593: Proc-pointer returning function as actual argument
5 ! Original test case by Tobias Burnus <burnus@gcc.gnu.org>
6 ! Modified by Janus Weil
14 integer function func()
22 call caller1(getPtr1())
23 call caller2(getPtr2())
24 call caller3(getPtr2())
30 if (b
/= 42) call abort()
33 procedure(integer) :: f
34 if (f() /= 42) call abort()
37 procedure(func
),pointer :: f
38 if (f() /= 42) call abort()
41 procedure(sub
), pointer :: getPtr1
45 procedure(func
), pointer :: getPtr2