[flang-commits] [PATCH] D128262: [Fortran] Avoid digits in character constant
Andrzej Warzynski via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Jun 23 05:28:38 PDT 2022
awarzynski added a comment.
Hey Diana, cheers for looking into this!
Please bear with me, as this is not my are of expertise :)
> Test 9 from FM905.f tests the splitting of long character strings at the 80-character boundary when using list-directed output.
Where is this boundary imposed? Is it a limit for the input of for the output? The get a better idea, I've run this benchmark using `flang-new` and `gfortran`:
**flang-new**
COMPUTED=
SHORTTHIS IS A LONGER CHARACTER STRING1234567890123456789012345678901234567890
12345678901234567890123456789012
CORRECT=
SHORT THIS IS A LONGER CHARACTER STRING 123456789012345678901234567890123456789
012345678901234567890123456789012
**gfortran**
COMPUTED=
SHORTTHIS IS A LONGER CHARACTER STRING123456789012345678901234567890123456789012345678901234567890123456789012
CORRECT=
SHORT THIS IS A LONGER CHARACTER STRING 123456789012345678901234567890123456789
012345678901234567890123456789012
So the expected output was generated with `gfortran` in mind. But why is the output from `flang-new` different? You referred to white spaces in list-directed output, but the formatting seems identical with respect to white spaces.
Repository:
rT test-suite
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128262/new/
https://reviews.llvm.org/D128262
More information about the flang-commits
mailing list