mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
367 B
Solidity
11 lines
367 B
Solidity
pragma experimental "v0.5.0";
|
|
contract C {
|
|
function f() pure public {
|
|
assembly {
|
|
jump(2)
|
|
}
|
|
}
|
|
}
|
|
// ----
|
|
// SyntaxError: (105-112): 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.
|