Wwstage-driver-leg byte identity gets one owner. The three carriers' content identity is already blanket-owned by their r815_/r940_/r951_ corpus twins via test-data-byteid; their only non-redundant assertion was the ww_ww driver leg, which 989_lib_byteid's 43-unit sweep covers apart from the zero-dep root-only edge — folded in as a new probe row (44 units). r940 fixture comments re-cited off the retired carrier.
19 lines
512 B
Plaintext
19 lines
512 B
Plaintext
//ww:run
|
|
// #220 global-sret family: global mutated through a pointer after the sret assign.
|
|
package main;
|
|
type quad = struct { a: i64, b: i64, c: i64, d: i64 };
|
|
fn mk(x: i64) quad = {
|
|
return quad { a = x, b = x + 1i64, c = x + 2i64, d = x + 3i64 };
|
|
};
|
|
fn bump(p: *quad) void = { p.a += 100i64; };
|
|
let g: quad;
|
|
export fn main() i32 = {
|
|
g = mk(7i64);
|
|
bump(&g);
|
|
if (g.a != 107i64) { return 1; };
|
|
if (g.b != 8i64) { return 2; };
|
|
if (g.c != 9i64) { return 3; };
|
|
if (g.d != 10i64) { return 4; };
|
|
return 0;
|
|
};
|