1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -Werror
2 ! A nasty case of a weird order of declarations - a symbol may appear
3 ! as an actual argument to a specification function before its rank
7 pure
integer function mykind(x
)
8 real, intent(in
) :: x(:)
12 integer, parameter :: ak
= kind(a
)
13 integer, parameter :: br
= rank(b
)
14 !WARNING: 'a' appeared earlier as a scalar actual argument to a specification function
16 !WARNING: 'b' appeared earlier as a scalar actual argument to a specification function