solidity/test/libsolidity/semanticTests/various/store_bytes.sol

16 lines
327 B
Solidity
Raw Normal View History

// this test just checks that the copy loop does not mess up the stack
contract C {
function save() public returns (uint256 r) {
r = 23;
savedData = msg.data;
r = 24;
}
bytes savedData;
}
2020-10-20 15:05:58 +00:00
// ====
// compileViaYul: also
// ----
// save() -> 24 # empty copy loop #
// save(): "abcdefg" -> 24