696_modtype_leaf_collision.c -> r696_modtype_leaf_pos (run-exit 26),
r696_modtype_leaf_neg (staged error; w6c 'no field', w6c_ww
asserttyped: dot — the old no-wwstage-checkfile comment is stale)
697_samemod_prefer.c -> r697_samemod_prefer (compile)
699_use_promote_alias.c -> r699_usepromote_{type,fn,def,var}
(run-exit 42 each)
Single-file multi-package form folds the modcollision/samemodprefer/
usepromote data trees into the fixtures; the trees retire with their
carriers. The dir-tree .wwi transport of colliding type decls is owned
by test/byteid/wwi_test.ww. Coverage upgrades: 697 and the 699 rows
gain the wwstage leg the carriers gated or skipped, and all positive
rows enter the blanket test-data-byteid net.
15 lines
346 B
Plaintext
15 lines
346 B
Plaintext
//ww:run-exit 42
|
|
// migrated from test/wcc/699_use_promote_alias.c: SK_USE->SK_VAR promotion must keep use_alias so `varmod.flag` resolves.
|
|
package varmod;
|
|
export let varmod: i32 = 0i32;
|
|
export type flag = enum i32 {
|
|
NONE = 0,
|
|
A = 42,
|
|
};
|
|
package main;
|
|
import varmod;
|
|
fn main() i32 = {
|
|
let m: varmod.flag = varmod.flag.A;
|
|
return m: i32;
|
|
};
|