solidity/test/libsolidity/semanticTests/various/flipping_sign_tests.sol

11 lines
163 B
Solidity
Raw Normal View History

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