mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
305 B
Solidity
16 lines
305 B
Solidity
contract C {
|
|
function f(int256 a, int256 b) public returns (int256) {
|
|
a <<= b;
|
|
return a;
|
|
}
|
|
|
|
function g(int256 a, int256 b) public returns (int256) {
|
|
a >>= b;
|
|
return a;
|
|
}
|
|
}
|
|
|
|
// ----
|
|
// f(int256,int256): 1, -1 -> FAILURE
|
|
// g(int256,int256): 1, -1 -> FAILURE
|