solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_old_shadow.sol

15 lines
248 B
Solidity
Raw Normal View History

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;
}
}
// ----