mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add test with same variable on lhs and rhs of assignment.
This commit is contained in:
parent
3a4769bd99
commit
beedf7ca25
@ -0,0 +1,17 @@
|
||||
{
|
||||
function f(x) -> y { y := x }
|
||||
mstore(0x40, memoryguard(0))
|
||||
|
||||
let $z := 42
|
||||
$z := f($z)
|
||||
}
|
||||
// ----
|
||||
// step: fakeStackLimitEvader
|
||||
//
|
||||
// {
|
||||
// function f(x) -> y
|
||||
// { y := x }
|
||||
// mstore(0x40, memoryguard(0x20))
|
||||
// mstore(0x00, 42)
|
||||
// mstore(0x00, f(mload(0x00)))
|
||||
// }
|
Loading…
Reference in New Issue
Block a user