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

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


Author: Jan Patrick Lehr
Date: 2025-01-21T20:00:48+01:00
New Revision: baeedd71d2463448aa74e9bc6178946a74f1028e

URL: https://github.com/llvm/llvm-project/commit/baeedd71d2463448aa74e9bc6178946a74f1028e
DIFF: https://github.com/llvm/llvm-project/commit/baeedd71d2463448aa74e9bc6178946a74f1028e.diff

LOG: [Flang][OpenMP] Fix run line w/ use mod_lib (#123762)

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.

Added: 
    

Modified: 
    flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90

Removed: 
    


################################################################################
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


        


More information about the flang-commits mailing list