solidity/test/libyul/yulOptimizerTests/controlFlowSimplifier/terminating_for_revert_plus_break.yul

21 lines
309 B
Plaintext
Raw Normal View History

2019-05-10 11:19:02 +00:00
{
for {} calldatasize() { mstore(1, 2) } {
let x := 7
mstore(4, 5)
break
revert(0, x)
}
}
// ====
// step: controlFlowSimplifier
// ----
// {
// for { } calldatasize() { mstore(1, 2) }
// {
// let x := 7
// mstore(4, 5)
// break
// revert(0, x)
// }
// }