mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
360 B
Solidity
19 lines
360 B
Solidity
contract C {
|
|
uint120[] data;
|
|
|
|
function f() public returns (uint120, uint120, uint120) {
|
|
data.push(123);
|
|
data.push(234);
|
|
data.push(345);
|
|
delete data;
|
|
assembly {
|
|
sstore(data.slot, 3)
|
|
}
|
|
return (data[0], data[1], data[2]);
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f() -> 0, 0, 0
|