[flang-commits] [flang] [Flang][OpenMP] Remove the orphan section test (PR #93343)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Fri May 24 13:10:55 PDT 2024


https://github.com/kiranchandramohan created https://github.com/llvm/llvm-project/pull/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.

>From f2801507b8b50a346fc02390f7a3497f494ee362 Mon Sep 17 00:00:00 2001
From: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: Fri, 24 May 2024 20:03:56 +0000
Subject: [PATCH] [Flang][OpenMP] Remove the parsing section test

---
 flang/test/Semantics/OpenMP/sections03.f90 | 27 ----------------------
 1 file changed, 27 deletions(-)
 delete mode 100644 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