test: port 696/697/699 resolver carriers to corpus fixtures
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.
This commit is contained in:
14
test/wcc/data/r699_usepromote_def/case.ww
Normal file
14
test/wcc/data/r699_usepromote_def/case.ww
Normal file
@@ -0,0 +1,14 @@
|
||||
//ww:run-exit 42
|
||||
// migrated from test/wcc/699_use_promote_alias.c: SK_USE->SK_DEF promotion must keep use_alias so `defmod.flag` resolves.
|
||||
package defmod;
|
||||
export def defmod: i32 = 0i32;
|
||||
export type flag = enum i32 {
|
||||
NONE = 0,
|
||||
A = 42,
|
||||
};
|
||||
package main;
|
||||
import defmod;
|
||||
fn main() i32 = {
|
||||
let m: defmod.flag = defmod.flag.A;
|
||||
return m: i32;
|
||||
};
|
||||
Reference in New Issue
Block a user