solidity/test/libsolidity/semanticTests/array/create_memory_byte_array.sol

13 lines
234 B
Solidity
Raw Normal View History

2020-05-14 10:34:37 +00:00
contract C {
function f() public returns (bytes1) {
bytes memory x = new bytes(35);
assert(x.length == 35);
x[34] = "A";
return (x[34]);
}
}
// ====
// compileViaYul: also
// ----
// f() -> "A"