solidity/test/libsolidity/semanticTests/array/push/array_push_packed_array.sol
Daniel Kirchner a8f7c69c47 Adjust tests.
2021-09-13 20:41:40 +02:00

23 lines
432 B
Solidity

contract c {
uint80[] x;
function test() public returns (uint80, uint80, uint80, uint80) {
x.push(1);
x.push(2);
x.push(3);
x.push(4);
x.push(5);
x.pop();
return (x[0], x[1], x[2], x[3]);
}
}
// ====
// requiresYulOptimizer: full
// compileViaYul: also
// ----
// test() -> 1, 2, 3, 4
// gas irOptimized: 93200
// gas legacy: 92798
// gas legacyOptimized: 92062