[flang][runtime] FLUSH(bad or unconnected unit number) is an error
authorPeter Klausler <pklausler@nvidia.com>
Wed, 22 Jun 2022 20:24:51 +0000 (13:24 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Thu, 23 Jun 2022 18:08:53 +0000 (11:08 -0700)
commitc078e464a09fa5a6df1d5b94fc862d2f9bf6b8bd
tree902864fc5d1f0da6134dc2af5374a5f0595b15fb
parentc50e6f590cd42aa739cc469341721ff443c35c36
[flang][runtime] FLUSH(bad or unconnected unit number) is an error

Some I/O control statements are no-ops when attempted on a bad or
unconnected UNIT=, but the standard says that FLUSH is an error
in that case.

Differential Revision: https://reviews.llvm.org/D128392
flang/include/flang/Runtime/iostat.h
flang/runtime/io-api.cpp
flang/runtime/iostat.cpp