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