[flang] [llvm] [OpenMP][Flang] Fix dynamic-extent array mapping (PR #107247)

Brian Cornille via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 06:44:37 PDT 2024


================
@@ -0,0 +1,33 @@
+! Offloading test checking lowering of arrays with dynamic extents.
+! REQUIRES: flang, amdgpu
+
+! RUN: %libomptarget-compile-fortran-run-and-check-generic
+
+subroutine test_array_target_enter_data(dims)
+    integer, intent(in) :: dims(2)
+    double precision :: A(2, dims(2))
+    !$omp target enter data map(to: U)
----------------
bcornille wrote:

Should this be `map(to: A)` ? I don't see a variable `U`.

https://github.com/llvm/llvm-project/pull/107247


More information about the llvm-commits mailing list