terralang / terra

Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
terralang.org
Other
2.71k stars 197 forks source link

Fix for passing arrays by value in PPC64le #577

Closed elliottslaughter closed 2 years ago

elliottslaughter commented 2 years ago

Terra supports the ability to pass arrays by value. While this is outside of the scope of the C calling convention, we should at least confirm that Terra does so self-consistently.

This PR adds a fix for PPC64le in this case, and a corresponding test to make sure we're covering this behavior in the test suite.