mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
572 B
Solidity
24 lines
572 B
Solidity
pragma experimental SMTChecker;
|
|
contract BaseBase {
|
|
uint x;
|
|
function init(uint a, uint b) public virtual {
|
|
x = a;
|
|
}
|
|
}
|
|
contract Base is BaseBase {
|
|
function init(uint a, uint b) public override {
|
|
}
|
|
}
|
|
contract Child is Base {
|
|
function bInit(uint c, uint d) public {
|
|
BaseBase.init(c, d);
|
|
assert(x == c);
|
|
assert(x == d); // should fail
|
|
}
|
|
}
|
|
// ====
|
|
// SMTIgnoreCex: yes
|
|
// ----
|
|
// Warning 5667: (84-90): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
// Warning 6328: (314-328): CHC: Assertion violation happens here.
|