solidity/test/libsolidity/semanticTests/functionCall/calling_uninitialized_function.sol

19 lines
431 B
Solidity
Raw Normal View History

contract C {
function intern() public returns (uint256) {
function (uint) internal returns (uint) x;
x(2);
return 7;
}
function extern() public returns (uint256) {
function (uint) external returns (uint) x;
x(2);
return 7;
}
}
// ====
// compileViaYul: also
// ----
2020-10-13 11:28:39 +00:00
// intern() -> FAILURE, hex"4e487b71", 0x51 # This should throw exceptions #
// extern() -> FAILURE