bolt/deps/llvm-18.1.8/flang/test/Semantics/OpenACC/acc-loop-validity.f90

20 lines
257 B
Fortran
Raw Normal View History

2025-02-14 19:21:04 +01:00
! 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