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
193 B
Plaintext
10 lines
193 B
Plaintext
//ww:run
|
|
package main;
|
|
import math.random;
|
|
export fn main() int = {
|
|
let g: random.random = random.init(1u64);
|
|
let x: u32 = random.u32n(&g, 1u32);
|
|
if (x >= 1u32) { return 1; };
|
|
return 0;
|
|
};
|