mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Include utility functions in ExpressionCompiler tests
This commit is contained in:
parent
c436785686
commit
cc8d341e28
@ -162,6 +162,12 @@ bytes compileFirstExpression(
|
|||||||
context << context.functionEntryLabel(dynamic_cast<FunctionDefinition const&>(
|
context << context.functionEntryLabel(dynamic_cast<FunctionDefinition const&>(
|
||||||
resolveDeclaration(*sourceUnit, function, resolver)
|
resolveDeclaration(*sourceUnit, function, resolver)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
context.appendMissingLowLevelFunctions();
|
||||||
|
// NOTE: We intentionally disable optimisations for utility functions to simplfy the tests
|
||||||
|
context.appendYulUtilityFunctions({});
|
||||||
|
BOOST_REQUIRE(context.appendYulUtilityFunctionsRan());
|
||||||
|
|
||||||
BOOST_REQUIRE(context.assemblyPtr());
|
BOOST_REQUIRE(context.assemblyPtr());
|
||||||
LinkerObject const& object = context.assemblyPtr()->assemble();
|
LinkerObject const& object = context.assemblyPtr()->assemble();
|
||||||
BOOST_REQUIRE(object.immutableReferences.empty());
|
BOOST_REQUIRE(object.immutableReferences.empty());
|
||||||
|
Loading…
Reference in New Issue
Block a user