1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! C739 If END TYPE is followed by a type-name, the type-name shall be the
3 ! same as that in the corresponding derived-type-stmt.
4 ! C1401 The program-name shall not be included in the end-program-stmt unless
5 ! the optional program-stmt is used. If included, it shall be identical to the
6 ! program-name specified in the program-stmt.
7 ! C1402 If the module-name is specified in the end-module-stmt, it shall be
8 ! identical to the module-name specified in the module-stmt.
9 ! C1413 If a submodule-name appears in the end-submodule-stmt, it shall be
10 ! identical to the one in the submodule-stmt.
11 ! C1414 If a function-name appears in the end-function-stmt, it shall be
12 ! identical to the function-name specified in the function-stmt.
13 ! C1502 If the end-interface-stmt includes a generic-spec, the interface-stmt
14 ! shall specify the same generic-spec
15 ! C1564 If a function-name appears in the end-function-stmt, it shall be
16 ! identical to the function-name specified in the function-stmt.
17 ! C1567 If a submodule-name appears in the end-submodule-stmt, it shall be
18 ! identical to the one in the submodule-stmt.
19 ! C1569 If the module-name is specified in the end-module-stmt, it shall be
20 ! identical to the module-name specified in the module-stmt
23 !ERROR: BLOCK DATA subprogram name mismatch
27 !ERROR: FUNCTION name mismatch
31 !ERROR: SUBROUTINE name mismatch
35 !ERROR: END PROGRAM name mismatch
39 !ERROR: SUBMODULE name mismatch
44 !ERROR: END INTERFACE generic name (t8) does not match generic INTERFACE (t7)
47 !ERROR: END INTERFACE generic name (t19) may not appear for ABSTRACT INTERFACE
50 !ERROR: END INTERFACE generic name (t20) may not appear for non-generic INTERFACE
53 !ERROR: END INTERFACE generic name (assignment(=)) may not appear for non-generic INTERFACE
54 end interface assignment(=)
56 end interface operator(.LT
.) ! not an error
57 interface operator(.EQ
.)
58 end interface operator(==) ! not an error
61 !ERROR: derived type definition name mismatch
65 subroutine subrFront()
66 !ERROR: SUBROUTINE name mismatch
67 end subroutine subrBack
71 !ERROR: FUNCTION name mismatch
77 !ERROR: MODULE PROCEDURE name mismatch
79 !ERROR: MODULE name mismatch