aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/376_inline_assembly_in_modifier.sol
blob: d6dcc4d0a0eb265dcb1e00ef29bb77b0ec64b1fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pragma experimental "v0.5.0";
contract test {
    modifier m {
        uint a = 1;
        assembly {
            a := 2
        }
        _;
    }
    function f() public m {
    }
}
// ----
// Warning: (152-181): Function state mutability can be restricted to pure