[flang-commits] [flang] [flang][OpenMP] Diagnose invalid capture statements in ATOMIC (PR #233330)

via flang-commits flang-commits at lists.llvm.org
Wed Oct 21 00:12:06 PDT 2026


================
@@ -0,0 +1,60 @@
+! RUN: not %flang_fc1 %openmp_flags -fopenmp-version=51 -fsyntax-only %s 2>&1 | FileCheck %s
+! RUN: not %flang_fc1 %openmp_flags -fopenmp-version=52 -fsyntax-only %s 2>&1 | FileCheck %s --check-prefixes=CHECK,OMP52
----------------
Ritanya-B-Bharadwaj wrote:

Done, I split it into atomic-capture-same-storage-v51.f90 and -v52.f90 (one per RUN line, same cases), both using test_errors.py now. Thanks!

https://github.com/llvm/llvm-project/pull/233330


More information about the flang-commits mailing list