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

14 lines
311 B
Solidity

contract C {
bytes1 a;
function f(bytes32 x) public returns (uint256, uint256, uint256) {
return (x.length, bytes16(uint128(2)).length, a.length + 7);
}
}
// ====
// requiresYulOptimizer: minimalStack
// compileToEwasm: also
// compileViaYul: also
// ----
// f(bytes32): "789" -> 32, 16, 8