wcc/ww: widen of a module-global tagged ident copies the whole box
Widening a global tagged union into a wider tagged slot copied nothing of the box; treat the global ident as a tagged source and copy the full box from g(SB) through the nested arm. Both-wrong pair: cstage spills frame garbage as the box (filed task #44, residual non-deterministic so the rows assert divergence only). The non-nested SUBSET-widen shape remains open as task #49 (site comment at the fall-through). Review item #51.
This commit is contained in:
12
Makefile
12
Makefile
@@ -262,6 +262,7 @@ TESTS = $(BIN)/test_smoke $(BIN)/test_lex $(BIN)/test_parse $(BIN)/test_check \
|
||||
$(BIN)/test_globtagreassign_run \
|
||||
$(BIN)/test_globstructret_run \
|
||||
$(BIN)/test_globstructwiden_run \
|
||||
$(BIN)/test_globtagwiden_run \
|
||||
$(BIN)/test_arr_ptr_global \
|
||||
$(BIN)/test_def_arr_infer_len \
|
||||
$(BIN)/test_def_arr_len \
|
||||
@@ -792,6 +793,17 @@ $(BIN)/test_globstructwiden_run: test/wcc/989_globstructwiden_run.c \
|
||||
$(LIB)/libwwrt.a | $(BIN)
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
# 989_globtagwiden_run (F8-c8, #51, #263): widening a module-global tagged
|
||||
# ident into a wider union must copy the whole box as the nested payload.
|
||||
# ww-runtime-correct; cstage copies frame garbage — non-deterministic, so the
|
||||
# cstage rows assert only divergence (cs!=ww, build-ok), cstage half = task #44.
|
||||
$(BIN)/test_globtagwiden_run: test/wcc/989_globtagwiden_run.c \
|
||||
$(BIN)/ww $(BIN)/ww_ww \
|
||||
$(BIN)/w6c $(BIN)/w6a $(BIN)/w6l \
|
||||
$(BIN)/w6c_ww $(BIN)/w6a_ww $(BIN)/w6l_ww \
|
||||
$(LIB)/libwwrt.a | $(BIN)
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
$(BIN)/test_let_global: test/wcc/630_let_global.c $(BIN)/ww $(BIN)/w6c \
|
||||
$(BIN)/w6a $(BIN)/w6l $(LIB)/libwwrt.a | $(BIN)
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
Reference in New Issue
Block a user