[flang-commits] [flang] 1334c03 - [flang] Fix test after 4078afc6d23e25df6baedad61b224ef86a94d42f
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Tue Apr 16 08:05:58 PDT 2024
Author: Krzysztof Parzyszek
Date: 2024-04-16T10:05:47-05:00
New Revision: 1334c034a73b7bf8a7af08be1c33d24a58127c47
URL: https://github.com/llvm/llvm-project/commit/1334c034a73b7bf8a7af08be1c33d24a58127c47
DIFF: https://github.com/llvm/llvm-project/commit/1334c034a73b7bf8a7af08be1c33d24a58127c47.diff
LOG: [flang] Fix test after 4078afc6d23e25df6baedad61b224ef86a94d42f
This tests requires the OpenMP runtime to be present, but the way that
the lit config detects it fails when "openmp" is added to RUNTIMES
instead of PROJECTS. This caused the tests to be skipped as unsupported
in local and upstream tests.
The actual bug was a missing word in the message, and putting the check
at the wrong line.
Added:
Modified:
flang/test/Semantics/OpenMP/clause-validity01.f90
Removed:
################################################################################
diff --git a/flang/test/Semantics/OpenMP/clause-validity01.f90 b/flang/test/Semantics/OpenMP/clause-validity01.f90
index 74f154bb0ad67d..21b99cb82549ad 100644
--- a/flang/test/Semantics/OpenMP/clause-validity01.f90
+++ b/flang/test/Semantics/OpenMP/clause-validity01.f90
@@ -342,8 +342,8 @@
a = 1.0
!ERROR: COPYPRIVATE clause is not allowed on the END WORKSHARE directive
!$omp end workshare nowait copyprivate(a)
+ !ERROR: NOWAIT clause is not allowed on the OMP WORKSHARE directive, use it on OMP END WORKSHARE directive
!$omp workshare nowait
- !ERROR: NOWAIT clause is not allowed on the WORKSHARE directive, use it on OMP END WORKSHARE directive
!$omp end workshare
!$omp end parallel
More information about the flang-commits
mailing list