1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Exercise function vs subroutine distinction in generics
8 integer function f1(x
, j
)
10 class(t1
), intent(in out
) :: x
11 integer, intent(in
) :: j
18 !WARNING: Generic interface 'g1' has both a function and a subroutine
22 class(t1
), intent(in out
) :: x
28 !ERROR: No specific function of generic 'g1' matches the actual arguments
30 !ERROR: No specific subroutine of generic 'g1' matches the actual arguments