solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/local_variable_access_out_of_functions_storage_ptr.sol

12 lines
291 B
Solidity
Raw Normal View History

contract test {
uint[] r;
function f() public {
uint[] storage a = r;
assembly {
function g() -> x { x := a_offset }
}
}
}
// ----
2018-08-06 10:42:39 +00:00
// DeclarationError: (142-150): Cannot access local Solidity variables from inside an inline assembly function.