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

Akash Banerjee via flang-commits flang-commits at lists.llvm.org
Fri Sep 6 06:24:46 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)
----------------
TIFitis wrote:

Sorry about that, fixed in https://github.com/llvm/llvm-project/commit/a67b6e163528ea547ccbcd4850803f062df66d2e.

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


More information about the flang-commits mailing list