bolt/deps/llvm-18.1.8/flang/test/Semantics/OpenMP/sections01.f90

16 lines
393 B
Fortran
Raw Normal View History

2025-02-14 19:21:04 +01:00
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
! OpenMP Version 4.5
! 2.7.2 sections Construct
! Only a single nowait clause can appear on a sections directive.
program omp_sections
!$omp sections
!$omp section
print *, "omp section"
!ERROR: At most one NOWAIT clause can appear on the END SECTIONS directive
!$omp end sections nowait nowait
end program omp_sections