solidity/test/libsolidity/smtCheckerTests/imports/imported_fail_1.sol
2020-09-11 13:34:46 +02:00

26 lines
486 B
Solidity

==== Source: ====
import "B.sol";
pragma experimental SMTChecker;
contract C is B {
function h(uint _x) public view {
assert(_x < x);
}
}
==== Source: A.sol ====
contract A {
uint x;
function f(uint _x) public {
x = _x;
}
}
==== Source: B.sol ====
import "A.sol";
contract B is A {
function g(uint _x) public view {
assert(_x > x);
}
}
// ----
// Warning 6328: (103-117): Assertion violation happens here.
// Warning 6328: (B.sol:71-85): Assertion violation happens here.