solidity/test/libsolidity/semanticTests/inlineAssembly/calldata_assign_from_nowhere.sol

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