solidity/test/libsolidity/semanticTests/viaYul/negation_bug.sol
2022-05-19 20:23:28 +02:00

12 lines
198 B
Solidity

contract C {
function f() public pure {
-(int8(0));
unchecked {
// Used to incorrectly use the checked unary negation function and revert.
(-(type(int8).min));
}
}
}
// ----
// f() ->