1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -Werror
2 ! Catch discrepancies between a local interface and a global definition
5 integer, intent(in
) :: x
8 subroutine global2(x
) bind(c
,name
="xyz")
9 integer, intent(in
) :: x
13 integer, intent(in
) :: x
16 pure
subroutine global4(x
)
17 integer, intent(in
) :: x
21 integer, intent(in
) :: x
26 !WARNING: The global subprogram 'global1' is not compatible with its local procedure declaration (incompatible dummy argument #1: incompatible dummy data object types: INTEGER(4) vs REAL(4))
33 subroutine global3(x
) bind(c
,name
="abc")
36 subroutine global4(x
) ! not PURE, but that's ok
37 integer, intent(in
) :: x
39 !WARNING: The global subprogram 'global5' is not compatible with its local procedure declaration (incompatible procedure attributes: Pure)
40 pure
subroutine global5(x
)
41 integer, intent(in
) :: x