solidity/test/libyul/yulOptimizerTests/functionHoister/empty_block.yul

24 lines
323 B
Plaintext
Raw Normal View History

2018-10-11 13:47:49 +00:00
{
let a:u256
{ }
function f() -> x:bool {
let b:u256 := 4:u256
{ }
for {} f() {} {}
}
}
2019-04-01 14:33:46 +00:00
// ====
// dialect: yul
2018-10-11 13:47:49 +00:00
// ----
// step: functionHoister
//
2018-10-11 13:47:49 +00:00
// {
2020-01-16 19:27:33 +00:00
// let a
2018-10-11 13:47:49 +00:00
// function f() -> x:bool
// {
2020-01-16 19:27:33 +00:00
// let b := 4
// for { } f() { }
// { }
2018-10-11 13:47:49 +00:00
// }
// }