mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
broken yul optimizer test
This commit is contained in:
parent
548a4b4ac6
commit
d5e2925326
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
function conditionallyStop() {
|
||||||
|
if calldataload(0) { leave }
|
||||||
|
return(0, 0)
|
||||||
|
}
|
||||||
|
let x := 0
|
||||||
|
let y := 1
|
||||||
|
sstore(x, y)
|
||||||
|
conditionallyStop()
|
||||||
|
sstore(x, y)
|
||||||
|
}
|
||||||
|
// ----
|
||||||
|
// step: unusedStoreEliminator
|
||||||
|
//
|
||||||
|
// {
|
||||||
|
// {
|
||||||
|
// let x := 0
|
||||||
|
// let y := 1
|
||||||
|
// conditionallyStop()
|
||||||
|
// sstore(x, y)
|
||||||
|
// }
|
||||||
|
// function conditionallyStop()
|
||||||
|
// {
|
||||||
|
// if calldataload(0) { leave }
|
||||||
|
// return(0, 0)
|
||||||
|
// }
|
||||||
|
// }
|
Loading…
Reference in New Issue
Block a user