[flang-commits] [flang] 2d6e972 - [flang] Fix tests

Nimish Mishra via flang-commits flang-commits at lists.llvm.org
Mon Nov 4 21:14:04 PST 2024


Author: Nimish Mishra
Date: 2024-11-05T10:43:55+05:30
New Revision: 2d6e9724725f542acb4dea54a5de818ac3ff9f5c

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

LOG: [flang] Fix tests

Add an additional flag to tests.

Added: 
    

Modified: 
    flang/test/Lower/OpenMP/Todo/task_detach.f90
    flang/test/Parser/OpenMP/task.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Lower/OpenMP/Todo/task_detach.f90 b/flang/test/Lower/OpenMP/Todo/task_detach.f90
index 8d0f1c6b8bc5fc..6bc55e9e7cf64c 100644
--- a/flang/test/Lower/OpenMP/Todo/task_detach.f90
+++ b/flang/test/Lower/OpenMP/Todo/task_detach.f90
@@ -1,6 +1,6 @@
 ! REQUIRES: openmp_runtime
-! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s
-! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s
+! RUN: %not_todo_cmd bbc -emit-fir %openmp_flags -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s
+! RUN: %not_todo_cmd %flang_fc1 -emit-fir %openmp_flags -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s
 
 !===============================================================================
 ! `detach` clause

diff  --git a/flang/test/Parser/OpenMP/task.f90 b/flang/test/Parser/OpenMP/task.f90
index c89f9aaf031cad..706deb3451f980 100644
--- a/flang/test/Parser/OpenMP/task.f90
+++ b/flang/test/Parser/OpenMP/task.f90
@@ -1,6 +1,6 @@
 ! REQUIRES: openmp_runtime
-! RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp -fopenmp-version=50  %s | FileCheck --ignore-case %s
-! RUN: %flang_fc1 -fdebug-unparse -fopenmp -fopenmp-version=50  %s | FileCheck --ignore-case --check-prefix="CHECK-UNPARSE" %s
+! RUN: %flang_fc1 %openmp_flags -fdebug-dump-parse-tree -fopenmp -fopenmp-version=50  %s | FileCheck --ignore-case %s
+! RUN: %flang_fc1 %openmp_flags -fdebug-unparse -fopenmp -fopenmp-version=50  %s | FileCheck --ignore-case --check-prefix="CHECK-UNPARSE" %s
 
 !CHECK: OmpBlockDirective -> llvm::omp::Directive = task
 !CHECK: OmpClauseList -> OmpClause -> Detach -> OmpDetachClause -> OmpObject -> Designator -> DataRef -> Name = 'event'


        


More information about the flang-commits mailing list