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
177 B
Plaintext
11 lines
177 B
Plaintext
//ww:run-exit 200
|
|
package main;
|
|
def M: i32 = 4;
|
|
type t = struct { b: [M]u8, end: i32 };
|
|
export fn main() i32 = {
|
|
let s: t;
|
|
s.b[3] = 200u8;
|
|
s.end = 7;
|
|
return s.b[3]: i32;
|
|
};
|