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

12 lines
179 B
Solidity
Raw Normal View History

2018-06-28 20:45:53 +00:00
contract C {
uint[] x;
2018-06-28 16:09:27 +00:00
function() external {
2018-06-28 20:45:53 +00:00
uint[] storage y = x;
assembly {
pop(y_slot)
pop(y_offset)
}
}
}
// ----