aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/381_inline_assembly_local_variable_access_out_of_functions.sol
blob: 93004ef6f222cabf25ece77802ace3f2e8927e79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
pragma experimental "v0.5.0";
contract test {
    function f() public {
        uint a;
        assembly {
            function g() -> x { x := a }
        }
    }
}
// ----
// DeclarationError: (144-145): Cannot access local Solidity variables from inside an inline assembly function.