test: some tests for push0

1. `push0_disallowed.yul`: checks if `push0()` is a valid builtin in strict Yul
2. `push0_disallowed.sol`: checks if `push0()` is a valid builtin in inline assembly
3. `push0.sol`: simple semantic test that returns 0
4. `evmone_support.sol`: tests if push0 works properly in evmone
5. Updated some bytecode too large tests to use `shanghai` as version
6. Updated various tests where `push1 0` was hardcoded in different forms / expectations on bytecode
size (`Assembler.cpp`, `GasCosts.cpp`, `SolidityCompiler.cpp`, `SolidityExpressionCompiler.cpp`)
This commit is contained in:
hrkrshnn
2023-04-12 00:10:24 +02:00
parent 802f895062
commit 41ce3feb0a
14 changed files with 130 additions and 27 deletions
@@ -0,0 +1,6 @@
// Based on ./push_disallowed.yul (which already includes push0).
{
push0()
}
// ----
// DeclarationError 4619: (72-77): Function "push0" not found.