[flang-commits] [clang] [flang] [flang] Add checks for Fortran 2023 system clock and add f2023/f202Y to valid arguments of -std= (PR #205938)
via flang-commits
flang-commits at lists.llvm.org
Thu Aug 13 18:06:26 PDT 2026
================
@@ -0,0 +1,123 @@
+! RUN: %flang %s 2>&1 | FileCheck --check-prefix=STRICT %s
+! RUN: %flang -fno-system-clock-strict %s 2>&1 | FileCheck --allow-empty --implicit-check-not="SYSTEM_CLOCK" %s
+! RUN: %flang -fsystem-clock-strict %s 2>&1 | FileCheck --check-prefix=STRICT %s
+
+! RUN: %flang -fno-system-clock-strict -fsystem-clock-strict %s 2>&1 | FileCheck --check-prefix=STRICT %s
+! RUN: %flang -fsystem-clock-strict -fno-system-clock-strict %s 2>&1 | FileCheck --allow-empty --implicit-check-not="SYSTEM_CLOCK" %s
+
+! RUN: %flang -fdefault-integer-8 %s 2>&1 | FileCheck --check-prefix=STRICT-8 %s
+! RUN: %flang -fdefault-integer-8 -fno-system-clock-strict %s 2>&1 | FileCheck --allow-empty --implicit-check-not="SYSTEM_CLOCK" %s
+
+! RUN: %flang -std=f2018 %s 2>&1 | FileCheck --allow-empty --implicit-check-not="SYSTEM_CLOCK" %s
+! RUN: %flang -std=f2023 %s 2>&1 | FileCheck --check-prefix=STRICT %s
+! RUN: %flang -std=f202Y %s 2>&1 | FileCheck --check-prefix=STRICT %s
----------------
mleair wrote:
Another f202Y sighting.
https://github.com/llvm/llvm-project/pull/205938
More information about the flang-commits
mailing list