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
14 lines
373 B
Fortran
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
|