solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/393_inline_assembly_jump.sol

11 lines
490 B
Solidity

contract C {
function f() pure public {
assembly {
jump(2)
}
}
}
// ----
// Warning: (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.
// TypeError: (75-82): Function declared as pure, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.