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.
11 lines
190 B
Plaintext
11 lines
190 B
Plaintext
//ww:run-exit 4
|
|
package main;
|
|
fn main() i32 = {
|
|
let arr: [16]u8;
|
|
let i: i32 = 0;
|
|
for (i < 16) { arr[i] = i: u8; i += 1; };
|
|
let s: []u8 = arr[3:10];
|
|
s = arr[1:5];
|
|
return s.len: i32;
|
|
};
|