solidity/test/libyul/yulSyntaxTests/if_statement.yul
2020-11-04 12:03:33 +01:00

9 lines
191 B
Plaintext

{
{ if 42 {} }
{ if 42 { let x := 3 } }
{ function f() -> x {} if f() { pop(f()) } }
{ let x := 0 if eq(calldatasize(), 0) { x := 1 } mstore(0, x) }
}
// ====
// dialect: evm