solidity/test/libsolidity/semanticTests/calldata/calldata_bytes_external.sol
Alex Beregszaszi edbdff8619 Update tests
2020-12-14 19:32:31 +00:00

14 lines
336 B
Solidity

contract CalldataTest {
function test(bytes calldata x) public returns (bytes calldata) {
return x;
}
function tester(bytes calldata x) public returns (bytes1) {
return this.test(x)[2];
}
}
// ====
// compileViaYul: also
// EVMVersion: >=byzantium
// ----
// tester(bytes): 0x20, 0x08, "abcdefgh" -> "c"