solidity/test/libyul/yulSyntaxTests/if_statement.yul
2021-04-20 17:38:29 +02:00

10 lines
199 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
// ----