solidity/test/libsolidity/semanticTests/array/bytes_length_member.sol
Nikola Matic fdc6699159 Rematerialize zero literals with default cleanup sequence
Add unused pruner step to the end of the default cleanup sequence
2023-09-04 15:40:33 +02:00

20 lines
366 B
Solidity

contract c {
function set() public returns (bool) {
data = msg.data;
return true;
}
function getLength() public returns (uint256) {
return data.length;
}
bytes data;
}
// ----
// getLength() -> 0
// set(): 1, 2 -> true
// gas irOptimized: 110393
// gas legacy: 110952
// gas legacyOptimized: 110576
// getLength() -> 68