[flang] Return arrays in Transfer runtime with SIZE argument
authorJean Perier <jperier@nvidia.com>
Fri, 3 Dec 2021 07:23:16 +0000 (08:23 +0100)
committerJean Perier <jperier@nvidia.com>
Fri, 3 Dec 2021 07:23:30 +0000 (08:23 +0100)
commit1c16b0db9d56ba533147cfbe2c4e1bb0a8bcbc45
tree216ddada8ed1e1c4a9ca6d010765fd5a48ae778f
parentc1048e3eb920958bb48723c5b996f1877554575f
[flang] Return arrays in Transfer runtime with SIZE argument

In TRANSFER runtime the result was an array only if the MOLD was an array.
This is not in line with TRANSFER definition in 16.9.193 that rules that it
must also be an array if MOLD is scalar and SIZE if provided.

Differential Revision: https://reviews.llvm.org/D114943
flang/runtime/misc-intrinsic.cpp
flang/unittests/Runtime/MiscIntrinsic.cpp