solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/jump_disallowed.sol
2019-10-25 15:01:25 +02:00

10 lines
346 B
Solidity

contract C {
function f() pure public {
assembly {
jump(2)
}
}
}
// ----
// SyntaxError: (75-79): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are disallowed in strict assembly. Use functions, "switch", "if" or "for" statements instead.