Test cross-module inlining against a twin that isn't inlined
Why
The tests of each inlining change check its own repros. This test calls helpers twice the same way, once @inline and once @inline(never), and expects the same result. Its cases are options at payload types that can and can't be undefined (unit, nested options, Nullable, an unboxed type with an undefined case, 'a), the order of arguments with side effects, and a Some of a ref that a callback assigns after the call.
Review
- Why only these cases? They are the ones that fail when the compiler is broken on purpose. Taking every option payload as unable to be
undefinedfails 10 of them, binding inlined arguments in reverse order fails the order case, and substituting any pureSomepayload fails the twoSomecases. Cases that failed under no such change were removed. Every@inlinehelper is inlined in the output, and each@inline(never)one is called.