Allow the lit test suite to run under Windows. This encompasses the following changes: * Define `lit_tools_dir` for flang's test configuration * Replace `(<command> || true)` idiom with `not <command>` * Add `REQUIRES: shell` on tests that invoke a shell script Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D89368
17 lines
403 B
Fortran
17 lines
403 B
Fortran
! RUN: %S/test_errors.sh %s %t %flang -fopenmp
|
|
! REQUIRES: shell
|
|
|
|
! 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
|