llvm-project/flang/test/Parser/OpenMP/fail-construct1.f90
Krzysztof Parzyszek 5520e16d2a
[flang][OpenMP] Parse ORDERED as standalone when DEPEND/DOACROSS is p… (#156693)
…resent

The OpenMP spec 4.5-5.1 defines ORDERED as standalone when a DEPEND
clause is present (with either SOURCE or SINK as argument). The OpenMP
spec 5.2+ defines ORDERED as standalone when a DOACROSS clause is
present.
2025-09-04 08:30:23 -05:00

6 lines
143 B
Fortran

! RUN: not %flang_fc1 -fsyntax-only -fopenmp %s 2>&1 | FileCheck %s
!$omp parallel
! CHECK: error: Expected OpenMP END PARALLEL directive
end