solidity/test/libsolidity/syntaxTests/controlFlow/unreachableCode/assembly/for_break.sol

14 lines
294 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
assembly {
for { let a := 0} lt(a,1) { a := add(a, 1) } {
break
let b := 42
}
}
}
}
// ----
// Warning: (103-117): Unreachable code.
// Warning: (160-171): Unreachable code.