test234
auto test234 =
q{--- test234
/// IR gen bug. Address of `arr` must be taken and passed as first parameter of `data`. Instead it is passed by value.
struct Array
{
u64* ptr;
u64 length;
u64[] data() { return ptr[0..length]; }
}
u64 get(Array arr) {
return arr.data[0];
}
};
tests passing
functionsvariables