mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
366 B
Solidity
16 lines
366 B
Solidity
|
contract C {
|
||
|
modifier add(uint16 a, uint16 b) {
|
||
|
unchecked { a + b; }
|
||
|
_;
|
||
|
}
|
||
|
|
||
|
function f(uint16 a, uint16 b, uint16 c) public add(a, b) returns (uint16) {
|
||
|
return b + c;
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// compileViaYul: also
|
||
|
// ----
|
||
|
// f(uint16,uint16,uint16): 0xe000, 0xe500, 2 -> 58626
|
||
|
// f(uint16,uint16,uint16): 0x1000, 0xe500, 0xe000 -> FAILURE
|