solidity/test/libsolidity/smtCheckerTests/inheritance/implicit_only_constructor_hierarchy.sol
2021-04-20 17:38:29 +02:00

23 lines
265 B
Solidity

contract A {
uint x;
function h() public view {
assert(x == 0);
}
}
contract B is A {
function g() public view {
assert(x == 0);
}
}
contract C is B {
function f() public view {
assert(x == 0);
}
}
// ====
// SMTEngine: all
// SMTSolvers: z3
// ----