solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_old.sol
2022-04-01 23:41:18 -05:00

14 lines
426 B
Solidity

contract C {
uint[] x;
fallback() external {
uint[] storage y = x;
assembly {
pop(y_slot)
pop(y_offset)
}
}
}
// ----
// DeclarationError 9467: (118-124='y_slot'): Identifier not found. Use ".slot" and ".offset" to access storage variables.
// DeclarationError 9467: (142-150='y_offset'): Identifier not found. Use ".slot" and ".offset" to access storage variables.