solidity/test/libyul/yulOptimizerTests/expressionInliner/no_inline_mload.yul

16 lines
270 B
Plaintext
Raw Normal View History

2018-10-11 14:58:21 +00:00
// Does not inline because mload could be moved out of sequence
{
function f(a) -> x { x := a }
let y := f(mload(2))
}
2019-04-01 14:33:46 +00:00
// ====
// step: expressionInliner
2018-10-11 14:58:21 +00:00
// ----
// {
// function f(a) -> x
// {
// x := a
// }
// let y := f(mload(2))
// }