Running syntax tests via IR #15670
Labels
low impact
Changes are not very noticeable or potential benefits are limited.
medium effort
Default level of effort
must have eventually
Something we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.
testing 🔨
Abstract
Currently our syntax tests get compiled only using the legacy codegen. We should either switch to compiling via IR or compile using both.
Motivation
Compiling via IR would increase test coverage and and bugs like #15669 show that we really need that.
This was also originally an issue for EOF implementation because it only works via IR.
Note that this is likely going to significantly increase the test running time.
Specification
We already have
compileViaYul
flag in syntax tests:solidity/test/libsolidity/SyntaxTest.cpp
Line 51 in 13943d9
The solution would be to either switch the default to
true
or start supportingalso
like in semantic tests to compile both ways (and make it the default). Then fix any issues that come up in the tests.The text was updated successfully, but these errors were encountered: