mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
302 B
Solidity
15 lines
302 B
Solidity
contract C {
|
|
function f(int a, int b) public pure returns (int) {
|
|
return a % b;
|
|
}
|
|
}
|
|
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f(int256,int256): 7, 5 -> 2
|
|
// f(int256,int256): 7, -5 -> 2
|
|
// f(int256,int256): -7, 5 -> -2
|
|
// f(int256,int256): -7, 5 -> -2
|
|
// f(int256,int256): -5, -5 -> 0
|