solidity/test/libyul/controlFlowSideEffects/nondisambiguated.yul
2021-11-04 16:38:07 +01:00

24 lines
406 B
Plaintext

{
function a() {
{
function b() { if calldataload(0) { return(0, 0) } }
b()
}
{
function b() { revert(0, 0) }
b()
}
}
{
function b() {
leave
revert(0, 0)
}
}
}
// ----
// a: can terminate, can revert
// b: can terminate, can continue
// b: can revert
// b: can continue