[flang-commits] [flang] b39760c - [flang][NFC] Fix failing atomic tests
Nimish Mishra via flang-commits
flang-commits at lists.llvm.org
Tue Oct 22 20:28:01 PDT 2024
Author: Nimish Mishra
Date: 2024-10-23T08:57:31+05:30
New Revision: b39760c4cea0e2cd29fdc493dec162babc796a9a
URL: https://github.com/llvm/llvm-project/commit/b39760c4cea0e2cd29fdc493dec162babc796a9a
DIFF: https://github.com/llvm/llvm-project/commit/b39760c4cea0e2cd29fdc493dec162babc796a9a.diff
LOG: [flang][NFC] Fix failing atomic tests
Fix ordering of checks in atomic02.f90.
Added:
Modified:
flang/test/Semantics/OpenMP/atomic02.f90
Removed:
################################################################################
diff --git a/flang/test/Semantics/OpenMP/atomic02.f90 b/flang/test/Semantics/OpenMP/atomic02.f90
index 57a97d88b9e9b3..c66085d00f1576 100644
--- a/flang/test/Semantics/OpenMP/atomic02.f90
+++ b/flang/test/Semantics/OpenMP/atomic02.f90
@@ -30,10 +30,11 @@ program OmpAtomic
!$omp atomic
!ERROR: Invalid or missing operator in atomic update statement
a = a**4
- !$omp atomic
+ !$omp atomic
+ !ERROR: Expected scalar variable on the LHS of atomic update assignment statement
!ERROR: Invalid or missing operator in atomic update statement
!ERROR: Expected scalar expression on the RHS of atomic update assignment statement
- c = c//d
+ c = d
!$omp atomic
!ERROR: Atomic update statement should be of form `l = l operator expr` OR `l = expr operator l`
!ERROR: Invalid or missing operator in atomic update statement
@@ -78,6 +79,7 @@ program OmpAtomic
!ERROR: Invalid or missing operator in atomic update statement
a = a**4
!$omp atomic update
+ !ERROR: Expected scalar variable on the LHS of atomic update assignment statement
!ERROR: Invalid or missing operator in atomic update statement
!ERROR: Expected scalar expression on the RHS of atomic update assignment statement
c = c//d
More information about the flang-commits
mailing list