1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! C1003 - can't parenthesize function call returning procedure pointer
5 procedure(frpp
), pointer, nopass
:: pp
11 procedure(boring
), pointer :: frpp
15 procedure(boring
), pointer :: mypp
17 mypp
=> boring
! legal
18 mypp
=> (boring
) ! legal, not a function reference
19 !ERROR: A function reference that returns a procedure pointer may not be parenthesized
20 mypp
=> (frpp()) ! C1003
21 mypp
=> frpp() ! legal, not parenthesized
23 mypp
=> dtinst
%pp() ! legal
24 !ERROR: A function reference that returns a procedure pointer may not be parenthesized