solidity/test/libsolidity/syntaxTests/inlineAssembly/leave_invalid.sol
2019-10-29 14:32:16 +01:00

10 lines
166 B
Solidity

contract C {
function f() public pure {
assembly {
leave
}
}
}
// ----
// SyntaxError: (63-68): Keyword "leave" can only be used inside a function.