[flang-commits] [flang] [llvm] [Flang][OpenMP] Fix Fortran pointer map(present) null handling (PR #204615)
Akash Banerjee via flang-commits
flang-commits at lists.llvm.org
Fri Jun 19 06:54:20 PDT 2026
================
@@ -0,0 +1,34 @@
+! REQUIRES: flang, amdgpu
+! RUN: %libomptarget-compile-fortran-generic
+! RUN: %libomptarget-run-generic 2>&1 | %fcheck-generic
+
+program map_present_pointer
+ implicit none
+ integer, target :: src(4) = [10, 20, 30, 40]
+ integer, pointer :: p(:) => null()
+ integer :: out
+
+ out = -1
+!$omp target map(present, to: p) map(tofrom: out)
----------------
TIFitis wrote:
You are correct, I'll put this PR on hold until I have something further to add.
https://github.com/llvm/llvm-project/pull/204615
More information about the flang-commits
mailing list