[flang-commits] [flang] [Flang][OpenMP] Fix run line w/ use mod_lib (PR #123762)

via flang-commits flang-commits at lists.llvm.org
Tue Jan 21 07:11:29 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-openmp

Author: Jan Patrick Lehr (jplehr)

<details>
<summary>Changes</summary>

After the crude workaround in https://github.com/llvm/llvm-project/pull/123666, @<!-- -->mjklemm suggested this change instead to address the issue.
Local testing did not show errors, so I'm inclined to land it and see what the buildbots think.

---
Full diff: https://github.com/llvm/llvm-project/pull/123762.diff


1 Files Affected:

- (modified) flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90 (+2-3) 


``````````diff
diff --git a/flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90 b/flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90
index 90158a61f75039..45b3aa8ee77f91 100644
--- a/flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90
+++ b/flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90
@@ -1,11 +1,10 @@
 ! REQUIRES: openmp_runtime
-! RUN: %not_todo_cmd %flang_fc1 -emit-llvm -fopenmp -fopenmp-version=51 -o - %s 2>&1 | FileCheck %s
+! RUN: %not_todo_cmd %flang_fc1 -emit-llvm %openmp_flags -fopenmp-version=51 -o - %s 2>&1 | FileCheck %s
 
 ! CHECK: not yet implemented: Unhandled clause allocate in omp.parallel
 ! CHECK: LLVM Translation failed for operation: omp.parallel
 program p
-  !use omp_lib
-  integer(8),parameter::omp_default_mem_alloc=1_8
+  use omp_lib
   integer :: x
   integer :: a
   integer :: i

``````````

</details>


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


More information about the flang-commits mailing list