[flang-commits] [flang] [llvm] [flang-rt] enable IsNamelistNameOrSlash lookahead for scalar namelist items (PR #211224)
Kareem Ergawy via flang-commits
flang-commits at lists.llvm.org
Thu Jul 30 06:14:53 PDT 2026
================
@@ -334,6 +334,131 @@ TEST(NamelistTests, RealValueForInt) {
EXPECT_EQ(got, expect);
}
+TEST(NamelistTests, EmptyValueForScalar) {
+ // logical :: l = .false. ; integer :: k = 42
+ // &nml l= k=7/
+ // The empty assignment `l=` should leave l at its .false. default and
+ // parsing should continue with k=7. Regression test for a bug where
----------------
ergawy wrote:
Done.
https://github.com/llvm/llvm-project/pull/211224
More information about the flang-commits
mailing list