1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
3 ! C1003 - can't parenthesize function call returning procedure pointer
6 procedure(frpp
), pointer, nopass
:: pp
12 procedure(boring
), pointer :: frpp
16 procedure(boring
), pointer :: mypp
18 mypp
=> boring
! legal
19 mypp
=> (boring
) ! legal, not a function reference
20 !ERROR: A function reference that returns a procedure pointer may not be parenthesized
21 mypp
=> (frpp()) ! C1003
22 mypp
=> frpp() ! legal, not parenthesized
24 mypp
=> dtinst
%pp() ! legal
25 !ERROR: A function reference that returns a procedure pointer may not be parenthesized