solidity/test/libsolidity/syntaxTests/inlineAssembly/function_call_to_label.sol
2018-07-25 10:45:31 +01:00

14 lines
499 B
Solidity

contract C {
function f() public pure {
assembly {
l:
l()
}
}
}
// ----
// Warning: (63-64): The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
// Warning: (63-64): 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: (73-74): Attempt to call label instead of function.