solidity/test/libsolidity/smtCheckerTests/functions/getters/contract.sol
2023-03-09 14:59:32 +01:00

17 lines
412 B
Solidity

contract D {}
contract C {
D public d;
function f() public view {
D e = this.d();
assert(e == d); // should hold
assert(address(e) == address(this)); // should fail
}
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (123-158): CHC: Assertion violation happens here.
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.