mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reassign test for remat.
This commit is contained in:
parent
2b6a7665ee
commit
773be40c19
@ -74,6 +74,14 @@ BOOST_AUTO_TEST_CASE(expression)
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(reassign)
|
||||
{
|
||||
CHECK(
|
||||
"{ let a := extcodesize(0) let b := a let c := b a := 2 let d := add(b, c) pop(a) pop(b) pop(c) pop(d) }",
|
||||
"{ let a := extcodesize(0) let b := a let c := a a := 2 let d := add(b, c) pop(2) pop(b) pop(c) pop(add(b, c)) }"
|
||||
);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(non_movable_instr)
|
||||
{
|
||||
CHECK(
|
||||
|
Loading…
Reference in New Issue
Block a user