1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
3 ! C739 If END TYPE is followed by a type-name, the type-name shall be the
4 ! same as that in the corresponding derived-type-stmt.
5 ! C1401 The program-name shall not be included in the end-program-stmt unless
6 ! the optional program-stmt is used. If included, it shall be identical to the
7 ! program-name specified in the program-stmt.
8 ! C1402 If the module-name is specified in the end-module-stmt, it shall be
9 ! identical to the module-name specified in the module-stmt.
10 ! C1413 If a submodule-name appears in the end-submodule-stmt, it shall be
11 ! identical to the one in the submodule-stmt.
12 ! C1414 If a function-name appears in the end-function-stmt, it shall be
13 ! identical to the function-name specified in the function-stmt.
14 ! C1502 If the end-interface-stmt includes a generic-spec, the interface-stmt
15 ! shall specify the same generic-spec
16 ! C1564 If a function-name appears in the end-function-stmt, it shall be
17 ! identical to the function-name specified in the function-stmt.
18 ! C1567 If a submodule-name appears in the end-submodule-stmt, it shall be
19 ! identical to the one in the submodule-stmt.
20 ! C1569 If the module-name is specified in the end-module-stmt, it shall be
21 ! identical to the module-name specified in the module-stmt
24 !ERROR: BLOCK DATA subprogram name mismatch
28 !ERROR: FUNCTION name mismatch
32 !ERROR: SUBROUTINE name mismatch
36 !ERROR: END PROGRAM name mismatch
40 !ERROR: SUBMODULE name mismatch
45 !ERROR: INTERFACE generic-name (t7) mismatch
48 !ERROR: derived type definition name mismatch
52 subroutine subrFront()
53 !ERROR: SUBROUTINE name mismatch
54 end subroutine subrBack
58 !ERROR: FUNCTION name mismatch
64 !ERROR: MODULE PROCEDURE name mismatch
66 !ERROR: MODULE name mismatch