The r-prefixed waves absorb the runtime, reject, and byte-compare rows of the migrated native carriers; each fixture is one directory with one case.ww and a //ww:error, //ww:compile, //ww:run, or //ww:run-exit directive covering both frontends.
9 lines
206 B
Plaintext
9 lines
206 B
Plaintext
//ww:run-exit 20
|
|
// Migrated from 830_cast_base_index row u64_ctl.
|
|
package main;
|
|
export fn main() i32 = {
|
|
let a: [4]u64 = [10u64, 20u64, 30u64, 40u64];
|
|
let i: int = 1;
|
|
return ((&a): *[4]u64)[i]: i32;
|
|
};
|