Skip to content

Commit

Permalink
eof: Update functionSizeEffects tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rodiazet committed Dec 16, 2024
1 parent d70edba commit 5d55a9a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/libyul/FunctionSideEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ std::string toString(SideEffects const& _sideEffects)
}

FunctionSideEffects::FunctionSideEffects(std::string const& _filename):
TestCase(_filename)
EVMVersionRestrictedTestCase(_filename)
{
m_source = m_reader.source();
m_expectation = m_reader.simpleExpectations();
Expand Down
2 changes: 1 addition & 1 deletion test/libyul/FunctionSideEffects.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
namespace solidity::yul::test
{

class FunctionSideEffects: public solidity::frontend::test::TestCase
class FunctionSideEffects: public solidity::frontend::test::EVMVersionRestrictedTestCase
{
public:
static std::unique_ptr<TestCase> create(Config const& _config)
Expand Down
2 changes: 2 additions & 0 deletions test/libyul/functionSideEffects/otherImmovables.yul
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
function g() { stop() }
function h() { invalid() }
}
// ====
// bytecodeFormat: legacy
// ----
// : movable, movable apart from effects, can be removed, can be removed if no msize
// a: can be removed, can be removed if no msize
Expand Down
2 changes: 2 additions & 0 deletions test/libyul/functionSideEffects/state.yul
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
function f() { a() }
function g() { sstore(0, 1) }
}
// ====
// bytecodeFormat: legacy
// ----
// : movable, movable apart from effects, can be removed, can be removed if no msize
// a: writes other state, writes storage, writes memory
Expand Down
2 changes: 2 additions & 0 deletions test/libyul/functionSideEffects/storage.yul
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
function g() { pop(callcode(100, 0x010, 10, 0x00, 32, 0x0100, 32))}
function h() { pop(sload(0))}
}
// ====
// bytecodeFormat: legacy
// ----
// : movable, movable apart from effects, can be removed, can be removed if no msize
// a: writes storage
Expand Down

0 comments on commit 5d55a9a

Please sign in to comment.