Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / dosemantics01.f90
blob29286dbd60f8f23a3a27eb8e437263b6e5a68ec4
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! C1131 -- check valid and invalid DO loop naming
4 PROGRAM C1131
5 IMPLICIT NONE
6 ! Valid construct
7 validDo: DO WHILE (.true.)
8 PRINT *, "Hello"
9 END DO ValidDo
11 ! Missing name on END DO
12 missingEndDo: DO WHILE (.true.)
13 PRINT *, "Hello"
14 !ERROR: DO construct name required but missing
15 END DO
17 ! Missing name on DO
18 DO WHILE (.true.)
19 PRINT *, "Hello"
20 !ERROR: DO construct name unexpected
21 END DO missingDO
23 END PROGRAM C1131