solidity/test/libsolidity/syntaxTests/inlineAssembly/leave_invalid.sol

10 lines
171 B
Solidity

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