solidity/test/libyul/controlFlowSideEffects/nondisambiguated.yul

24 lines
406 B
Plaintext
Raw Normal View History

{
function a() {
{
2021-11-03 16:12:58 +00:00
function b() { if calldataload(0) { return(0, 0) } }
b()
}
{
function b() { revert(0, 0) }
b()
}
}
2021-11-03 16:12:58 +00:00
{
function b() {
leave
revert(0, 0)
}
}
}
// ----
2021-11-03 16:12:58 +00:00
// a: can terminate, can revert
// b: can terminate, can continue
// b: can revert
// b: can continue