solidity/test/libsolidity/syntaxTests/controlFlow/unreachableCode/assembly/double_revert.sol
2020-03-09 16:23:10 +01:00

18 lines
330 B
Solidity

contract C {
function f() public pure {
assembly {
revert(0, 0)
revert(0, 0)
}
}
function g() public pure {
assembly {
revert(0, 0)
}
revert();
}
}
// ----
// Warning: (100-112): Unreachable code.
// Warning: (222-230): Unreachable code.