Add test case for calldata offset and length

pull/1057/head
Harry Kalodner 3 years ago
parent 5975405fa2
commit afcaf99c21
  1. 9
      tests/ast-parsing/yul-0.7.5.sol

@ -0,0 +1,9 @@
contract C {
function f(bytes calldata paramA) external returns (uint256 retA) {
assembly {
retA := paramA.offset
retA := add(retA, batchData.length)
}
}
}
Loading…
Cancel
Save