mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
406 B
Plaintext
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
|