[flang-commits] [flang] [llvm] [flang][OpenMP] Check that IF clause applies to at most one leaf (PR #205164)
via flang-commits
flang-commits at lists.llvm.org
Tue Jun 23 13:00:31 PDT 2026
================
@@ -0,0 +1,12 @@
+!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=60
+
+subroutine f
+! Allowed in 6.0
+ !$omp taskgraph if(.true.)
+ !$omp end taskgraph
+
+!ERROR: PARALLEL LOOP is not a constituent of the TEAMS LOOP directive
+ !$omp teams loop if(parallel loop: .false.)
+ do i = 1, 10
+ end do
----------------
kwyatt-ext wrote:
Suggest adding a test case to 60 like this:
```
!ERROR: At most one IF clause can apply to each directive constituent
!$omp taskgraph if(.true.) if(.false.)
!$omp end taskgraph
```
To test for duplicate if clauses.
https://github.com/llvm/llvm-project/pull/205164
More information about the flang-commits
mailing list