Open
Description
Two issues
- The function prototype is "T F32" which is the type of an array of functions that return T.
- The value is returned by "return result;" where result is an array. This just returns the address of the array.
The fix is probably to do the same that we do for FFI functions: pass in a pointer to where the result should go
void F(T result[32]) {...}
An alternative might be to adapt the tuple return code to put the array in a struct the same way that we do if the return type is a tuple.
struct F_result { T r0[32]; };
struct F_result F() {...}
The second might be easier.