solidity/test/libsolidity/smtCheckerTests/functions/internal_call_inheritance_2.sol

25 lines
365 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
uint y;
function c(uint _y) public returns (uint) {
y = _y;
return y;
}
}
contract B is C {
function b() public returns (uint) { return c(42); }
}
contract A is B {
uint public x;
function a() public {
x = b();
assert(x < 40);
}
}
// ----
2020-09-09 14:12:55 +00:00
// Warning 6328: (274-288): Assertion violation happens here.