solidity/test/libsolidity/ASTJSON/assembly/switch.sol
2019-11-13 12:13:22 +01:00

13 lines
208 B
Solidity

contract C {
function f() pure public {
assembly {
let f := 0
switch calldatasize()
case 0 { f := 1 }
default { f := 2 }
}
}
}
// ----