1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 subroutine foo(A
, B
, P
)
4 real elemental
function foo_elemental(x
)
7 pure
real function foo_pure(x
)
10 real function foo_nonelemental(x
)
15 procedure(sqrt
), pointer :: P
16 !ERROR: Rank of dummy argument is 0, but actual argument has rank 1
18 !ERROR: Procedure pointer 'p' associated with incompatible procedure designator 'foo_elemental': incompatible procedure attributes: Elemental
21 !ERROR: PURE procedure pointer 'p' may not be associated with non-PURE procedure designator 'foo_nonelemental'