[flang] Add co_sum to the list of intrinsics and update test
authorKatherine Rasmussen <krasmussen@lbl.gov>
Thu, 26 May 2022 22:14:31 +0000 (15:14 -0700)
committerKatherine Rasmussen <krasmussen@lbl.gov>
Thu, 14 Jul 2022 20:49:38 +0000 (13:49 -0700)
commitd2460d90080f2ff8564ceed745998f821544ec98
tree7063d927022102a45f2c827fbbac7d8140917120
parent889c6f3996769a991a24da957f597e7500d158e7
[flang] Add co_sum to the list of intrinsics and update test

Add the collective subroutine, co_sum, to the list of intrinsics.
In accordance with 16.9.50 and 16.9.137, add a check for and an
error if coindexed objects are being passed to certain arguments
in co_sum and in move_alloc. Add a semantics test to check that
this error is successfully caught in calls to move_alloc. Remove
the XFAIL directive, update the ERROR directives and add both
standard-conforming and non-standard conforming calls to the
semantics test for co_sum.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D114134
flang/lib/Evaluate/intrinsics.cpp
flang/test/Semantics/collectives01.f90
flang/test/Semantics/move_alloc.f90 [new file with mode: 0644]