forked from OSchip/llvm-project
12 lines
334 B
Fortran
12 lines
334 B
Fortran
! RUN: %S/test_any.sh %s %flang %t
|
|
! Error test -- DO loop uses obsolete loop termination statement
|
|
! See R1131 and C1131
|
|
|
|
! EXEC: ${F18} -funparse-with-symbols -Mstandard %s 2>&1 | ${FileCheck} %s
|
|
! CHECK: A DO loop should terminate with an END DO or CONTINUE
|
|
|
|
program endDo
|
|
do 10 i = 1, 5
|
|
10 print *, "in loop"
|
|
end program endDo
|