[flang-commits] [flang] [llvm] [flang-rt] Extension: accept '!' as value separator in NAMELIST input (PR #200441)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Wed Jun 3 14:53:07 PDT 2026


================
@@ -151,6 +152,23 @@ TEST(InputTest, TestListInputInvalidFormat) {
       "Bad character 'g' in INTEGER input field");
 }
 
+// The NAMELIST extension that treats '!' as a value separator is scoped to
+// NAMELIST mode only.  In ordinary list-directed input '!' is not a comment
+// introducer, so a '!' glued to a value must still be rejected as an invalid
+// trailing character.
+TEST(InputTest, BangIsNotSeparatorInListDirected) {
----------------
eugeneepshteyn wrote:

New test to catch that `!` doesn't affect regular list-directed input.

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


More information about the flang-commits mailing list