solidity/test/libsolidity/syntaxTests/controlFlow/leave_outside_function.sol
2022-04-01 23:41:18 -05:00

11 lines
302 B
Solidity

contract C {
function f() public pure {
assembly {
// Make sure this doesn't trigger the unimplemented assertion in the control flow builder.
leave
}
}
}
// ----
// SyntaxError 8149: (178-183='leave'): Keyword "leave" can only be used inside a function.