Files
clang-p2996/flang/test/Semantics/OpenACC/acc-loop-validity.f90
Valentin Clement (バレンタイン クレメン) bc32346082 [flang][openacc] Support labeled DO loop after acc loop directive (#66294)
Make the `DoConstruct` in `OpenACCLoopConstruct` optional and move the
labeled do construct in in the canonicalization step.
2023-09-13 20:50:20 -07:00

20 lines
257 B
Fortran

! RUN: %python %S/../test_errors.py %s %flang -fopenacc
program openacc_clause_validity
implicit none
integer :: i, n
i = 0
!ERROR: A DO loop must follow the LOOP directive
!$acc loop
i = 1
!$acc loop
do 100 i=0, n
100 continue
end