mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
More informative test
This commit is contained in:
parent
0909ffc26e
commit
c4f0608b68
@ -284,11 +284,11 @@ BOOST_AUTO_TEST_CASE(zeroarg_macro)
|
||||
char const* sourceCode = R"(
|
||||
(returnlll
|
||||
(seq
|
||||
(def 'zeroarg () (asm INVALID))
|
||||
(def 'zeroarg () (seq (mstore 0 0x1234) (return 0 32)))
|
||||
(zeroarg)))
|
||||
)";
|
||||
compileAndRun(sourceCode);
|
||||
BOOST_CHECK(callFallback() == encodeArgs());
|
||||
BOOST_CHECK(callFallback() == encodeArgs(u256(0x1234)));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
Loading…
Reference in New Issue
Block a user