solidity/test/libsolidity/semanticTests/types/packing_signed_types.sol

11 lines
234 B
Solidity
Raw Normal View History

2019-07-08 14:04:52 +00:00
contract test {
function run() public returns(int8 y) {
uint8 x = 0xfa;
return int8(x);
}
}
// ====
// compileViaYul: also
2019-07-08 14:04:52 +00:00
// ----
// run() -> 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa