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

14 lines
272 B
Solidity

contract C {
function f() public returns (bytes1) {
bytes memory x = new bytes(35);
assert(x.length == 35);
x[34] = "A";
return (x[34]);
}
}
// ====
// requiresYulOptimizer: minimalStack
// compileViaYul: also
// ----
// f() -> "A"