mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
248 B
Solidity
15 lines
248 B
Solidity
|
contract C {
|
||
|
uint[] x;
|
||
|
fallback() external {
|
||
|
uint y_slot = 2;
|
||
|
uint y_offset = 3;
|
||
|
uint[] storage y = x;
|
||
|
assembly {
|
||
|
pop(y_slot)
|
||
|
pop(y_offset)
|
||
|
}
|
||
|
y[0] = 2;
|
||
|
}
|
||
|
}
|
||
|
// ----
|