solidity/test/libyul/controlFlowSideEffects/eval_order.yul

20 lines
288 B
Plaintext
Raw Normal View History

2021-10-04 16:09:08 +00:00
{
function a() -> x {
revert(0, 0)
}
function b() -> x {
return(0, 0)
}
function c() {
sstore(a(), b())
}
function d() {
sstore(b(), a())
}
}
// ----
// a: can revert
// b: can terminate
// c: can terminate
// d: can revert