solidity/test/libsolidity/smtCheckerTests/try_catch/try_inside_while.sol

15 lines
386 B
Solidity
Raw Normal View History

2021-01-09 15:35:46 +00:00
contract C {
function f() public returns (uint) {
while(1==1)
try this.f() returns (uint b) {
b = 2;
} catch {
}
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2021-01-09 15:35:46 +00:00
// ----
2021-03-31 15:11:54 +00:00
// Warning 6321: (43-47): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
// Warning 6838: (59-63): BMC: Condition is always true.