mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
tests: add yul simplifier not applied
This commit is contained in:
parent
4dc3335cda
commit
cf3bf57cb2
@ -139,4 +139,14 @@ BOOST_AUTO_TEST_CASE(mod_and)
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(not_applied)
|
||||
{
|
||||
CHECK(
|
||||
// The first argument of div is not constant.
|
||||
// keccak256 is not movable.
|
||||
"{ let a := div(keccak256(0, 0), 0) }",
|
||||
"{ let a := div(keccak256(0, 0), 0) }"
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
Loading…
Reference in New Issue
Block a user