Some foundry tests behave differently when the project is compiled with the via-ir flag or without.
git clone --recurse-submodules git@github.com:malteish/troubleWithFoundryAndYul.gitto clone this repocdinto the local copy of this repoforge test -vv. This executes the one test and shows the corresponding output. The test passes, even though it should definitely fail. Read the test for more details.FOUNDRY_PROFILE=noYUL forge test -vv. This compiles the project without thevia-irflag. The test fails, as expected.
Please notice there are at least 2 problems here, which are described in the test.