aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/390_inline_assembly_050_labels.sol
blob: 77a73ebc8e5a2b02fa072ba9c2ab15cd1440c8ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
pragma experimental "v0.5.0";
contract C {
    function f() pure public {
        assembly {
            label:
        }
    }
}
// ----
// SyntaxError: (105-110): The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
// SyntaxError: (105-110): 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.