41
41
42
42
using namespace solidity ::langutil;
43
43
using namespace solidity ::evmasm;
44
+ using namespace solidity ::test;
44
45
45
46
namespace solidity ::frontend::test
46
47
{
@@ -1329,13 +1330,14 @@ BOOST_AUTO_TEST_CASE(jumpdest_removal)
1329
1330
);
1330
1331
}
1331
1332
1332
- BOOST_AUTO_TEST_CASE (jumpdest_removal_subassemblies)
1333
+ BOOST_AUTO_TEST_CASE (jumpdest_removal_subassemblies, * boost::unit_test::precondition (nonEOF()) )
1333
1334
{
1334
1335
// This tests that tags from subassemblies are not removed
1335
1336
// if they are referenced by a super-assembly. Furthermore,
1336
1337
// tag unifications (due to block deduplication) is also
1337
1338
// visible at the super-assembly.
1338
1339
1340
+ solAssert (!solidity::test::CommonOptions::get ().eofVersion ().has_value ());
1339
1341
Assembly::OptimiserSettings settings;
1340
1342
settings.runInliner = false ;
1341
1343
settings.runJumpdestRemover = true ;
@@ -1346,8 +1348,8 @@ BOOST_AUTO_TEST_CASE(jumpdest_removal_subassemblies)
1346
1348
settings.evmVersion = solidity::test::CommonOptions::get ().evmVersion ();
1347
1349
settings.expectedExecutionsPerDeployment = OptimiserSettings{}.expectedExecutionsPerDeployment ;
1348
1350
1349
- Assembly main{settings.evmVersion , false , solidity::test::CommonOptions::get (). eofVersion () , {}};
1350
- AssemblyPointer sub = std::make_shared<Assembly>(settings.evmVersion , true , solidity::test::CommonOptions::get (). eofVersion () , std::string{});
1351
+ Assembly main{settings.evmVersion , false , std::nullopt , {}};
1352
+ AssemblyPointer sub = std::make_shared<Assembly>(settings.evmVersion , true , std::nullopt , std::string{});
1351
1353
1352
1354
sub->append (u256 (1 ));
1353
1355
auto t1 = sub->newTag ();
0 commit comments