solidity/test/libsolidity/semanticTests/calldata/calldata_bytes_external.sol

14 lines
334 B
Solidity
Raw Normal View History

contract CalldataTest {
function test(bytes calldata x) public returns (bytes calldata) {
return x;
}
function tester(bytes calldata x) public returns (byte) {
return this.test(x)[2];
}
}
// ====
2020-07-20 13:06:45 +00:00
// compileViaYul: also
// EVMVersion: >=byzantium
// ----
// tester(bytes): 0x20, 0x08, "abcdefgh" -> "c"