solidity/test/libsolidity/semanticTests/various/flipping_sign_tests.sol
2020-03-19 14:42:25 +01:00

11 lines
163 B
Solidity

contract test {
function f() public returns (bool) {
int256 x = -2**255;
assert(-x == x);
return true;
}
}
// ----
// f() -> true