| ! RUN: %python %S/test_errors.py %s %flang_fc1 |
| ! C1107 -- COMMON, EQUIVALENCE, INTENT, NAMELIST, OPTIONAL, VALUE or |
| ! STATEMENT FUNCTIONS not allow in specification part |
| !ERROR: COMMON statement is not allowed in a BLOCK construct |
| !ERROR: EQUIVALENCE statement is not allowed in a BLOCK construct |
| subroutine s3_c1107(x_in, x_out) |
| !ERROR: INTENT statement is not allowed in a BLOCK construct |
| !ERROR: NAMELIST statement is not allowed in a BLOCK construct |
| !ERROR: VALUE statement is not allowed in a BLOCK construct |
| subroutine s6_c1107(x, y) |
| !ERROR: OPTIONAL statement is not allowed in a BLOCK construct |
| !ERROR: STATEMENT FUNCTION statement is not allowed in a BLOCK construct |