[flang] [llvm] [Flang] [OpenMP] Add semantic checks for detach clause in task (PR #119172)
Tom Eccles via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 10 04:03:49 PDT 2025
================
@@ -0,0 +1,22 @@
+! REQUIRES: openmp_runtime
+! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags -fopenmp-version=50
+! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags -fopenmp-version=51
+
+! OpenMP Version 5.0: 2.10.1
+! Various checks for DETACH Clause
+
+program detach02
+ use omp_lib, only: omp_event_handle_kind
+ integer(omp_event_handle_kind) :: event_01, event_02
+
+ !TODO: Throw following error for the versions 5.0 and 5.1
+ !ERR: At most one DETACH clause can appear on the TASK directive
----------------
tblah wrote:
Couldn't you call `SetContextClauseInfo` manually for versions >= 52?
https://github.com/llvm/llvm-project/pull/119172
More information about the llvm-commits
mailing list