[flang][runtime] Complete partial output records when positioning/closing after non...
authorPeter Klausler <pklausler@nvidia.com>
Mon, 22 May 2023 18:56:14 +0000 (11:56 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 23 May 2023 22:54:57 +0000 (15:54 -0700)
commit472913c7ef7456958760cfb2cd5c6bb86323b500
tree823ba0bbd4a3b19d07ae5a600ed001ea4f25f128
parentb2e6b7354452c10ed6f38958253fd76aca0877de
[flang][runtime] Complete partial output records when positioning/closing after non-advancing output

Before positioning or closing a unit after a non-advancing output statement
has left a partial record in its buffer, complete the record by calling
AdvanceRecord().  Fixes https://github.com/llvm/llvm-project/issues/59761.

Differential Revision: https://reviews.llvm.org/D151134
flang/runtime/unit.cpp