Files
clang-p2996/flang/test/Semantics/OpenMP/defaultmap-clause-v50.f90
Krzysztof Parzyszek 4c4a4134d5 [flang][OpenMP] Update frontend support for DEFAULTMAP clause (#116506)
Add ALL variable category, implement semantic checks to verify the
validity of the clause, improve error messages, add testcases.

The variable category modifier is optional since 5.0, make sure we allow
it to be missing. If it is missing, assume "all" in clause conversion.
2024-11-18 07:04:10 -06:00

24 lines
463 B
Fortran

!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=50 -Werror
subroutine f00
!$omp target defaultmap(tofrom)
!$omp end target
end
subroutine f01
!$omp target defaultmap(tofrom:aggregate)
!$omp end target
end
subroutine f02
!$omp target defaultmap(from:scalar)
!$omp end target
end
subroutine f03
!WARNING: ALL is not allowed in OpenMP v5.0, try -fopenmp-version=52
!$omp target defaultmap(tofrom:all)
!$omp end target
end