To enable Flang testing on Windows, shell scripts have to be ported to Python. In this patch the "test_errors.sh" script is ported to python ("test_errors.py"). The RUN line of existing tests was changed to make use of the python script.
Used python regex in place of awk/sed.
Reviewed By: Meinersbur
Differential Revision: https://reviews.llvm.org/D107575
16 lines
390 B
Fortran
16 lines
390 B
Fortran
! 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
|