2019-02-06 11:10:48 +00:00
|
|
|
contract C {
|
|
|
|
function f() public returns (uint) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
function g(uint x, uint y) public returns (uint) {
|
|
|
|
return x - y;
|
|
|
|
}
|
|
|
|
function h() public payable returns (uint) {
|
|
|
|
return f();
|
|
|
|
}
|
2019-02-21 00:13:14 +00:00
|
|
|
function x(bytes32 b) public returns (bytes32) {
|
|
|
|
return b;
|
|
|
|
}
|
2019-02-21 22:25:12 +00:00
|
|
|
function t(bool b) public returns (bool) {
|
|
|
|
return !b;
|
|
|
|
}
|
2019-02-06 11:10:48 +00:00
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// f() -> 1
|
|
|
|
// g(uint256,uint256): 1, -2 -> 3
|
|
|
|
// h(), 1 ether -> 1
|
|
|
|
// j() -> FAILURE
|
|
|
|
// i() # Does not exist. # -> FAILURE # Reverts. #
|
2019-02-21 00:13:14 +00:00
|
|
|
// x(bytes32): 0x31 -> 0x31
|
2019-02-21 22:25:12 +00:00
|
|
|
// t(bool): true -> false
|