mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
253 B
Solidity
10 lines
253 B
Solidity
contract C {
|
|
function f() public pure returns (bytes calldata x) {
|
|
assembly { x.offset := 0 x.length := 4 }
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f() -> 0x20, 4, 0x26121ff000000000000000000000000000000000000000000000000000000000
|