aboutsummaryrefslogtreecommitdiff
path: root/flang-rt/unittests/Runtime/NumericalFormatTest.cpp
AgeCommit message (Collapse)AuthorFilesLines
8 days[flang][runtime] Handle ';' in fixed-width input field (#150512)Peter Klausler1-0/+1
Formatted input of real values can handle a ',' field separator when one appears in an fixed-width input field, but can't cope with a semicolon under DECIMAL='COMMA'. Fix. Fixes https://github.com/llvm/llvm-project/issues/150047.
8 days[flang][runtime] Fix formatted input of NAN(...) (#149606)Peter Klausler1-0/+1
Formatted real input is allowed to have parenthesized information after "NAN". We don't interpret the contents, but we should at least scan the information correctly. Fixes https://github.com/llvm/llvm-project/issues/149533 and https://github.com/llvm/llvm-project/issues/150035.
2025-07-18[flang][runtime] Handle spaces before ')' in alternative list-directe… ↵Peter Klausler1-0/+31
(#149384) …d complex input List-directed reads of complex values that can't go through the usual fast path (as in this bug's test case, which uses DECIMAL='COMMA') didn't skip spaces before the closing right parenthesis correctly. Fixes https://github.com/llvm/llvm-project/issues/149164.
2025-05-28[flang] Extension: allow char string edit descriptors in input formats (#140624)Peter Klausler1-0/+1
FORMAT("J=",I3) is accepted by a few other Fortran compilers as a valid format for input as well as for output. The character string edit descriptor "J=" is interpreted as if it had been 2X on input, causing two characters to be skipped over. The skipped characters don't have to match the characters in the literal string. An optional warning is emitted under control of the -pedantic option.
2025-04-18[flang] Tweak integer output under width-free I/G editing (#136316)Peter Klausler1-0/+4
A recent patch fixed Fujitsu test case 0561_0168 by emitting a leading space for "bare" (no width 'w') I and G output editing of integer values. This fix has broken another Fujitsu test case (0561_0168), since the leading space should not be produced at the first column of the output record. Adjust.
2025-03-26[flang][NFC] Restore I/O runtime API header name (#132423)Peter Klausler1-1/+1
flang/include/flang/Runtime/io-api.h was changed into io-api-consts.h, then wrapped into a new io-api.h that includes io-api-consts.h, does some redundant includes and declarations, and then declares the prototype of one function, InquiryKeywordHashDecode. Make that function static in io-stmt.cpp prior to its sole call site, then undo the renaming, to reduce confusion and redundancy.
2025-02-16[Flang][NFC] Move runtime library files to flang-rt (#110298)Michael Kruse1-0/+979
Mostly mechanical changes in preparation of extracting the Flang-RT "subproject" in #110217. This PR intends to only move pre-existing files to the new folder structure, with no behavioral change. Common files (headers, testing, cmake) shared by Flang-RT and Flang remain in `flang/`. Some cosmetic changes and files paths were necessary: * Relative paths to the new path for the source files and `add_subdirectory`. * Add the new location's include directory to `include_directories` * The unittest/Evaluate directory has unitests for flang-rt and Flang. A new `CMakeLists.txt` was introduced for the flang-rt tests. * Change the `#include` paths relative to the include directive * clang-format on the `#include` directives * Since the paths are part if the copyright header and include guards, a script was used to canonicalize those * `test/Runtime` and runtime tests in `test/Driver` are moved, but the lit.cfg.py mechanism to execute the will only be added in #110217.