solidity/test/libyul/controlFlowSideEffects/eval_order.yul
2021-10-14 17:46:07 +02:00

20 lines
288 B
Plaintext

{
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