[Chapel Merge] Fix array localization in `writeBinary(data: [])`

Branch: refs/heads/main
Revision: 8c63974fcc299bc108c028887d0d6d3f738714ad
Author: jeremiah-corrado
Link: Fix array localization in `writeBinary(data: [])` by jeremiah-corrado · Pull Request #21959 · chapel-lang/chapel · GitHub
Log Message:
Fix array localization in writeBinary(data: []) (#21959)

This PR resolves a test failure introduced by
https://github.com/chapel-lang/chapel/pull/21786, where writeBinary
would pass a pointer to a remote array into an external C function. This
call is now only made if the array is local.

[ reviewed by @mppf ] - Thanks!

  • paratest
  • gasnet paratest

Compare: Comparing 9c0f86b1761c8b32ca48140197ce32641ee31ff3...0200342cdbda82b73a21208550455a45c60051e7 · chapel-lang/chapel · GitHub

Diff:
M modules/standard/IO.chpl
https://github.com/chapel-lang/chapel/pull/21959.diff