solidity/test/libsolidity/semanticTests/viaYul/negation_bug.yul
2021-07-08 10:47:29 +02:00

14 lines
229 B
Plaintext

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