Implement parsing of the AFFINITY clause on TASK construct, conversion from the parser class to omp::Clause. Lowering to HLFIR is unsupported, a TODO message is displayed.
10 lines
263 B
Fortran
10 lines
263 B
Fortran
!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=45
|
|
|
|
subroutine f00(x)
|
|
integer :: x(10)
|
|
!ERROR: AFFINITY clause is not allowed on directive TASK in OpenMP v4.5, try -fopenmp-version=50
|
|
!$omp task affinity(x)
|
|
x = x + 1
|
|
!$omp end task
|
|
end
|