solidity/test/libsolidity/smtCheckerTests/try_catch/try_inside_if.sol
Martin Blicha 09de54b5eb tests
2021-01-11 13:36:03 +01:00

15 lines
301 B
Solidity

pragma experimental SMTChecker;
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;
}
}
}
// ----
// Warning 6838: (141-145): BMC: Condition is always false.