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.
10 lines
214 B
Plaintext
10 lines
214 B
Plaintext
//ww:run-exit 5
|
|
package main;
|
|
fn main() i32 = {
|
|
let a: [3]str = ["hi", "byebye", "x"];
|
|
let p: i32 = a[0].len: i32;
|
|
let q: i32 = a[1].len: i32;
|
|
let r: i32 = a[2].len: i32;
|
|
return p * 100i32 + q * 10i32 + r;
|
|
};
|