Files
clang-p2996/flang/test/Semantics/OpenMP/masked.f90
Anchu Rajendran S 6658e1a3fd Adding parsing and semantic check support for omp masked (#91432)
omp masked directive in OpenMP 5.2 allows to specify code regions which
are expected to be executed by thread ids specified by the programmer.
Filter clause of the directive allows to specify the thread id. This
change adds the parsing support for the directive
2024-05-20 21:32:41 -07:00

14 lines
373 B
Fortran

! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
subroutine test_masked()
integer :: c = 1
!ERROR: At most one FILTER clause can appear on the MASKED directive
!$omp masked filter(1) filter(2)
c = c + 1
!$omp end masked
!ERROR: NOWAIT clause is not allowed on the MASKED directive
!$omp masked nowait
c = c + 2
!$omp end masked
end subroutine