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

15 lines
294 B
Solidity
Raw Normal View History

2021-01-06 14:55:26 +00:00
contract C {
function g(bool b) public {}
function f(bool b) public returns (bytes memory txt) {
if (0==1)
try this.g(b) {}
catch (bytes memory s) {
txt = s;
}
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2021-01-06 14:55:26 +00:00
// ----
2021-03-31 15:11:54 +00:00
// Warning 6838: (109-113): BMC: Condition is always false.