[flang-commits] [flang] 57be0d2 - [Flang][OpenMP] Remove the orphan section test (#93343)
via flang-commits
flang-commits at lists.llvm.org
Fri May 24 13:21:05 PDT 2024
Author: Kiran Chandramohan
Date: 2024-05-24T21:21:01+01:00
New Revision: 57be0d2c86e6da73bbd34850a348a87e0a03afbb
URL: https://github.com/llvm/llvm-project/commit/57be0d2c86e6da73bbd34850a348a87e0a03afbb
DIFF: https://github.com/llvm/llvm-project/commit/57be0d2c86e6da73bbd34850a348a87e0a03afbb.diff
LOG: [Flang][OpenMP] Remove the orphan section test (#93343)
Remove this test since it is marked as XFAIL and has some
non-deterministic behaviour which causes it to spuriously pass on
out-of-tree builds.
Capturing this in https://github.com/llvm/llvm-project/issues/93342 to
make a proper fix and a test later.
Added:
Modified:
Removed:
flang/test/Semantics/OpenMP/sections03.f90
################################################################################
diff --git a/flang/test/Semantics/OpenMP/sections03.f90 b/flang/test/Semantics/OpenMP/sections03.f90
deleted file mode 100644
index eb7e83ae2fd87..0000000000000
--- a/flang/test/Semantics/OpenMP/sections03.f90
+++ /dev/null
@@ -1,27 +0,0 @@
-! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
-!XFAIL: *
-! OpenMP version 5.0.0
-! 2.8.1 sections construct
-! Orphaned section directives are prohibited. That is, the section directives must appear within the sections construct and must not be encountered elsewhere in the sections region
-!TODO: Error in parsing. Make parser errors more informative. Until then, the test is XFAIL
-
-program OmpOrphanedSections
- use omp_lib
- integer counter
- counter = 0
- !CHECK: expected 'END'
- !CHECK: END PROGRAM statement
- !CHECK: in the context: main program
- !CHECK: expected 'END PROGRAM'
- !CHECK: in the context: END PROGRAM statement
- !CHECK: in the context: main program
- !$omp section
- print *, "An orphaned section containing a single statement"
- !$omp section
- counter = counter + 1
- print *, "An orphaned section containing multiple statements"
-!$omp sections
- !$omp section
- print *, "Not an orphan structured block"
-!$omp end sections
-end program OmpOrphanedSections
More information about the flang-commits
mailing list