solidity/test/libsolidity/syntaxTests/controlFlow/uninitializedAccess/reverting_call_free_function.sol

12 lines
168 B
Solidity

function iWillRevert() pure { revert(); }
contract C {
function test(bool _param) pure external returns(uint256) {
if (_param)
return 1;
iWillRevert();
}
}