[flang-commits] [flang] [llvm] [flang-rt] enable IsNamelistNameOrSlash lookahead for scalar namelist items (PR #211224)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Thu Jul 30 20:06:01 PDT 2026
================
@@ -0,0 +1,35 @@
+! UNSUPPORTED: offload-cuda
+
+! Reads two NAMELIST records whose scalar LOGICAL item has an empty
+! assignment — first `l_flag=` with no spaces around the `=`, then
+! `l_flag = ` with surrounding whitespace — and checks that in both
+! cases l_flag keeps its .false. default while i_count picks up 7
+! from the following assignment. Covers the Flang NAMELIST
+! empty-scalar extension listed in flang/docs/Extensions.md.
+
+! RUN: %flang %isysroot -L"%libdir" %s -o %t
----------------
eugeneepshteyn wrote:
We actually don't add runtime tests to LIT tests, because buildbots sometimes run in weird execution environments and keeping all necessary settings to make them all happy may be difficult. The runtime tests should either be in unittest/Runtime or in llvm-test-suite.
https://github.com/llvm/llvm-project/pull/211224
More information about the flang-commits
mailing list