mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Also run some end to end tests via yul.
This commit is contained in:
parent
e43df3b72a
commit
701aed4beb
@ -43,6 +43,13 @@ using namespace std;
|
||||
using namespace std::placeholders;
|
||||
using namespace dev::test;
|
||||
|
||||
#define ALSO_VIA_YUL(CODE) \
|
||||
{ \
|
||||
{ CODE } \
|
||||
m_compileViaYul = true; \
|
||||
{ CODE } \
|
||||
}
|
||||
|
||||
namespace dev
|
||||
{
|
||||
namespace solidity
|
||||
@ -92,8 +99,10 @@ BOOST_AUTO_TEST_CASE(empty_contract)
|
||||
char const* sourceCode = R"(
|
||||
contract test { }
|
||||
)";
|
||||
compileAndRun(sourceCode);
|
||||
BOOST_CHECK(callContractFunction("i_am_not_there()", bytes()).empty());
|
||||
ALSO_VIA_YUL(
|
||||
compileAndRun(sourceCode);
|
||||
BOOST_CHECK(callContractFunction("i_am_not_there()", bytes()).empty());
|
||||
)
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(exp_operator)
|
||||
|
Loading…
Reference in New Issue
Block a user