solidity/test/libsolidity/semanticTests/array/copying/copy_removes_bytes_data.sol
2021-03-29 11:02:31 +02:00

18 lines
410 B
Solidity

contract c {
function set() public returns (bool) { data1 = msg.data; return true; }
function reset() public returns (bool) { data1 = data2; return true; }
bytes data1;
bytes data2;
}
// ====
// compileViaYul: also
// ----
// set(): 1, 2, 3, 4, 5 -> true
// gas irOptimized: 163790
// gas legacy: 163756
// gas legacyOptimized: 163596
// storage: nonempty
// reset() -> true
// storage: empty