mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add an end-to-end test about LLL macro with zero arguments
This commit is contained in:
parent
37a949e634
commit
a03913427f
@ -279,6 +279,18 @@ BOOST_AUTO_TEST_CASE(assembly_codecopy)
|
|||||||
BOOST_CHECK(callFallback() == encodeArgs(string("abcdef")));
|
BOOST_CHECK(callFallback() == encodeArgs(string("abcdef")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(zeroarg_macro)
|
||||||
|
{
|
||||||
|
char const* sourceCode = R"(
|
||||||
|
(returnlll
|
||||||
|
(seq
|
||||||
|
(def 'zeroarg () (asm INVALID))
|
||||||
|
(zeroarg)))
|
||||||
|
)";
|
||||||
|
compileAndRun(sourceCode);
|
||||||
|
BOOST_CHECK(callFallback() == encodeArgs());
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE_END()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user