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

12 lines
178 B
Solidity
Raw Normal View History

2018-06-28 20:45:53 +00:00
contract C {
uint[] x;
fallback() external {
2018-06-28 20:45:53 +00:00
uint[] storage y = x;
assembly {
pop(y.slot)
pop(y.offset)
2018-06-28 20:45:53 +00:00
}
}
}
// ----