blob: f5a3ab89a0020620492f6d0f14e6f908e814e8c7 [file] [log] [blame]
! RUN: %S/test_errors.sh %s %t %f18
! C1131 -- check valid and invalid DO loop naming
PROGRAM C1131
IMPLICIT NONE
! Valid construct
validDo: DO WHILE (.true.)
PRINT *, "Hello"
END DO ValidDo
! Missing name on END DO
missingEndDo: DO WHILE (.true.)
PRINT *, "Hello"
!ERROR: DO construct name required but missing
END DO
! Missing name on DO
DO WHILE (.true.)
PRINT *, "Hello"
!ERROR: DO construct name unexpected
END DO missingDO
END PROGRAM C1131