diff --git a/test/libsolidity/MemoryGuardTest.cpp b/test/libsolidity/MemoryGuardTest.cpp index e5eb7752f2f1..7f0914cc4ef4 100644 --- a/test/libsolidity/MemoryGuardTest.cpp +++ b/test/libsolidity/MemoryGuardTest.cpp @@ -18,6 +18,7 @@ #include +#include #include #include #include @@ -35,6 +36,7 @@ using namespace solidity::util::formatting; using namespace solidity::langutil; using namespace solidity::frontend; using namespace solidity::frontend::test; +using namespace solidity::test; using namespace yul; void MemoryGuardTest::setupCompiler(CompilerStack& _compiler) @@ -59,7 +61,7 @@ TestCase::TestResult MemoryGuardTest::run(std::ostream& _stream, std::string con ErrorList errors; auto [object, analysisInfo] = yul::test::parse( compiler().yulIR(contractName), - EVMDialect::strictAssemblyForEVMObjects({}), + EVMDialect::strictAssemblyForEVMObjects(CommonOptions::get().evmVersion()), errors ); diff --git a/test/libsolidity/MemoryGuardTest.h b/test/libsolidity/MemoryGuardTest.h index ec6fe5e5b907..e8e5f0ea4e11 100644 --- a/test/libsolidity/MemoryGuardTest.h +++ b/test/libsolidity/MemoryGuardTest.h @@ -34,14 +34,14 @@ namespace solidity::frontend::test using solidity::test::SyntaxTestError; -class MemoryGuardTest: public AnalysisFramework, public TestCase +class MemoryGuardTest: public AnalysisFramework, public EVMVersionRestrictedTestCase { public: static std::unique_ptr create(Config const& _config) { return std::make_unique(_config.filename); } - MemoryGuardTest(std::string const& _filename): TestCase(_filename) + MemoryGuardTest(std::string const& _filename): EVMVersionRestrictedTestCase(_filename) { m_source = m_reader.source(); m_expectation = m_reader.simpleExpectations();