llvm-project/flang/test/Lower/OpenMP/Todo/map-modifiers-present.f90
Krzysztof Parzyszek 697d65ded6
[flang][OpenMP] Parsing support for map type modifiers (#111860)
This commit adds parsing of type modifiers for the MAP clause: CLOSE,
OMPX_HOLD, and PRESENT. The support for ALWAYS has already existed.

The new modifiers are not yet handled in lowering: when present, a TODO
message is emitted and compilation stops.
2024-10-11 11:38:32 -05:00

12 lines
324 B
Fortran

! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s
! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s
!CHECK: Map type modifiers (other than 'ALWAYS') are not implemented yet
subroutine f02()
integer :: x
!$omp target map(present: x)
x = x + 1
!$omp end target
end