solidity/test/libsolidity/semanticTests/integer/many_local_variables.sol
2023-05-11 10:56:55 -05:00

10 lines
288 B
Solidity

contract test {
function run(uint x1, uint x2, uint x3) public returns(uint y) {
uint8 a = 0x1; uint8 b = 0x10; uint16 c = 0x100;
y = a + b + c + x1 + x2 + x3;
y += b + x2;
}
}
// ----
// run(uint256,uint256,uint256): 0x1000, 0x10000, 0x100000 -> 0x121121