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

25 lines
359 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);
}
}
// ----
// Warning: (274-288): Assertion violation happens here