1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Resolve generic based on number of arguments
13 !ERROR: No specific procedure of generic 'f' matches the actual arguments
17 ! Elemental and non-element function both match: non-elemental one should be used
20 logical elemental
function f1(x
)
30 !ERROR: No intrinsic or user-defined ASSIGNMENT(=) matches operand types LOGICAL(4) and REAL(4)
34 ! Resolve named operator
36 interface operator(.foo
.)
37 pure
integer(8) function f_real(x
, y
)
38 real, intent(in
) :: x
, y
40 pure
integer(8) function f_integer(x
, y
)
41 integer, intent(in
) :: x
, y
45 x
= y
.foo
. z
! OK: f_real
46 i
= j
.foo
. k
! OK: f_integer
47 !ERROR: No intrinsic or user-defined .FOO. matches operand types LOGICAL(4) and LOGICAL(4)
51 ! Generic resolves successfully but error analyzing call
57 real, intent(out
) :: x
72 !ERROR: Actual argument associated with INTENT(OUT) dummy argument 'x=' must be definable
77 !ERROR: Actual argument associated with INTENT(OUT) dummy argument 'x=' must be definable