aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/393_inline_assembly_jump.sol
blob: 6cb35d6dfc7f168d91c1250ff14fc4581a19c700 (plain) (tree)
1
2
3
4
5
6
7
8
9







                              
                                                                                                                                                                                                                                 
contract C {
    function f() pure public {
        assembly {
            jump(2)
        }
    }
}
// ----
// SyntaxError: (75-82): 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.