aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/382_inline_assembly_local_variable_access_out_of_functions_storage_ptr.sol
blob: 65d614a3f5c1b4626ff5cfaf8f53cde7e2d17e32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
contract test {
    uint[] r;
    function f() public {
        uint[] storage a = r;
        assembly {
            function g() -> x { x := a_offset }
        }
    }
}
// ----
// DeclarationError: (142-150): Cannot access local Solidity variables from inside an inline assembly function.