|
1 |
| -! RUN: not %f18 -funparse-with-symbols %s 2>&1 | FileCheck %s |
2 |
| -! CHECK: BLOCK DATA subprogram name mismatch |
3 |
| -! CHECK: should be |
4 |
| -! CHECK: FUNCTION name mismatch |
5 |
| -! CHECK: SUBROUTINE name mismatch |
6 |
| -! CHECK: PROGRAM name mismatch |
7 |
| -! CHECK: SUBMODULE name mismatch |
8 |
| -! CHECK: INTERFACE generic-name (t7) mismatch |
9 |
| -! CHECK: mismatched INTERFACE |
10 |
| -! CHECK: derived type definition name mismatch |
11 |
| -! CHECK: MODULE PROCEDURE name mismatch |
12 |
| -! CHECK: MODULE name mismatch |
| 1 | +! RUN: %S/test_errors.sh %s %t %f18 |
13 | 2 | ! C739 If END TYPE is followed by a type-name, the type-name shall be the
|
14 | 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 |
15 | 21 |
|
16 | 22 | block data t1
|
| 23 | +!ERROR: BLOCK DATA subprogram name mismatch |
17 | 24 | end block data t2
|
18 | 25 |
|
19 | 26 | function t3
|
| 27 | +!ERROR: FUNCTION name mismatch |
20 | 28 | end function t4
|
21 | 29 |
|
22 | 30 | subroutine t9
|
| 31 | +!ERROR: SUBROUTINE name mismatch |
23 | 32 | end subroutine t10
|
24 | 33 |
|
25 | 34 | program t13
|
| 35 | +!ERROR: END PROGRAM name mismatch |
26 | 36 | end program t14
|
27 | 37 |
|
28 | 38 | submodule (mod) t15
|
| 39 | +!ERROR: SUBMODULE name mismatch |
29 | 40 | end submodule t16
|
30 | 41 |
|
31 | 42 | module t5
|
32 | 43 | interface t7
|
| 44 | + !ERROR: INTERFACE generic-name (t7) mismatch |
33 | 45 | end interface t8
|
34 | 46 | type t17
|
| 47 | + !ERROR: derived type definition name mismatch |
35 | 48 | end type t18
|
| 49 | + |
| 50 | + abstract interface |
| 51 | + subroutine subrFront() |
| 52 | + !ERROR: SUBROUTINE name mismatch |
| 53 | + end subroutine subrBack |
| 54 | + function funcFront(x) |
| 55 | + real, intent(in) :: x |
| 56 | + real funcFront |
| 57 | + !ERROR: FUNCTION name mismatch |
| 58 | + end function funcBack |
| 59 | + end interface |
| 60 | + |
36 | 61 | contains
|
37 | 62 | module procedure t11
|
| 63 | + !ERROR: MODULE PROCEDURE name mismatch |
38 | 64 | end procedure t12
|
| 65 | +!ERROR: MODULE name mismatch |
39 | 66 | end module mox
|
0 commit comments