1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic -Werror
2 ! Test warnings on mismatching interfaces involvingCHARACTER arguments
6 subroutine assumedLen(s
)
15 interface ! these are all OK
16 subroutine constLen(s
)
19 subroutine assumedLen(s
)
31 !WARNING: The global subprogram 'constlen' is not compatible with its local procedure declaration (incompatible dummy argument #1: incompatible dummy data object types: CHARACTER(KIND=1,LEN=1_8) vs CHARACTER(KIND=1,LEN=2_8))
32 subroutine constLen(s
)
35 !WARNING: The global subprogram 'assumedlen' is not compatible with its local procedure declaration (incompatible dummy argument #1: assumed-length character vs explicit-length character)
36 subroutine assumedLen(s
)
39 !WARNING: The global subprogram 'exprlen' is not compatible with its local procedure declaration (incompatible dummy argument #1: constant-length vs non-constant-length character dummy arguments)
48 !WARNING: The global subprogram 'constlen' is not compatible with its local procedure declaration (incompatible dummy argument #1: assumed-length character vs explicit-length character)
49 subroutine constLen(s
)
52 !WARNING: The global subprogram 'exprlen' is not compatible with its local procedure declaration (incompatible dummy argument #1: assumed-length character vs explicit-length character)
61 !WARNING: The global subprogram 'constlen' is not compatible with its local procedure declaration (incompatible dummy argument #1: constant-length vs non-constant-length character dummy arguments)
62 subroutine constLen(s
)
66 !WARNING: The global subprogram 'assumedlen' is not compatible with its local procedure declaration (incompatible dummy argument #1: assumed-length character vs explicit-length character)
67 subroutine assumedLen(s
)