aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_no_restrict_warning.sol
blob: cc6ef1830c5a99c6c8ab27ebc60b2509237adf32 (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function k() public {
        assembly { jump(2) }
    }
}
// ----
// SyntaxError: (58-65): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.