1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Ensure that references to functions that return pointers can serve as
3 ! "variables" in actual arguments. All of these uses are conforming and
4 ! no errors should be reported.
6 integer, target
:: x
= 1
8 function get() result(p
)
12 subroutine increment(n
)
13 integer, intent(inout
) :: n
15 end subroutine increment
24 open(file
='file',newunit
=get())
25 allocate(q
,stat
=get())