llvm-project/flang/unittests
Jean Perier 2e65c8e8db [flang] Allow write after non advancing read in IO runtime
1. To avoid overwriting the part of the record read in the non advancing read,
the furtherPositionInRecord field must be set to the max of the
furtherPositionInRecord and the positionInRecord at the beginning of the
IO write.

2. To allow any further read to succeed after the write, the unit
beganReadingRecord_ must be set to false when resetting the recordLength
during the write, otherwise, recordLength will not be computed in further
read and an assert is hit (at unit.cpp(398)).

The added unit test exercises both of these scenarios.

Differential Revision: https://reviews.llvm.org/D113740
2021-11-16 14:53:39 +01:00
..
Decimal [flang] Make flang build compatible with LLVM dylib 2020-10-14 14:27:25 +02:00
Evaluate [flang] Remove incorrect unit test 2021-10-04 18:27:14 -07:00
Frontend [flang][nfc] Fix variable names in `FrontendOptions` & `PreprocessorOptions` 2021-08-02 10:08:31 +00:00
Optimizer [fir] Add utility function to FIRBuilder and MutableBox 2021-10-22 10:00:34 +02:00
Runtime [flang] Allow write after non advancing read in IO runtime 2021-11-16 14:53:39 +01:00
CMakeLists.txt [fir] Split FIROptimizer lib into several smaller libraries 2021-10-05 14:02:32 +02:00