Repository navigation
Conversation
…nnot apply, and applies --prelude=alloc and --overflow= (#1048) Root cause: run_test_file_env_applied (src/main.w) compiles a run-mode fixture in-process and read `//! args:` only by name for -O0..-O3, --no-std, --freestanding, --no-runtime, --alloc and the none/core/full preludes; every other arg was dropped. A fixture naming --emit-c or --bundle-corpus passed without exercising either, and the three tree fixtures naming --overflow=wrap, --overflow=saturate and --prelude=alloc ran in the default mode. test_run_path_applies lists what this path applies, and it now applies --prelude=alloc and --overflow=<mode> (Compilation.set_overflow_mode); any other arg fails the fixture: "//! args: `X` has no effect on a test run in-process; a check-only, expect-check-stdout or expect-build-fail fixture passes it to the compiler". Test: test/behavior/behav_1048_run_path_refuses_unapplied_args.w runs `with test` on a fixture with `//! args: --no-such-flag-1048`. The installed compiler passes it ("ok: 1 test passed").
ehartford
marked this pull request as ready for review
October 25, 2026 23:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause: run_test_file_env_applied (src/main.w) compiles a run-mode
fixture in-process and read
//! args:only by name for -O0..-O3,--no-std, --freestanding, --no-runtime, --alloc and the none/core/full
preludes; every other arg was dropped. A fixture naming --emit-c or
--bundle-corpus passed without exercising either, and the three tree
fixtures naming --overflow=wrap, --overflow=saturate and --prelude=alloc
ran in the default mode.
test_run_path_applies lists what this path applies, and it now applies
--prelude=alloc and --overflow= (Compilation.set_overflow_mode); any
other arg fails the fixture: "//! args:
Xhas no effect on a test runin-process; a check-only, expect-check-stdout or expect-build-fail fixture
passes it to the compiler".
Test: test/behavior/behav_1048_run_path_refuses_unapplied_args.w runs
with teston a fixture with//! args: --no-such-flag-1048. The installedcompiler passes it ("ok: 1 test passed").
Closes #1048