mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8d91ccf028
available at compile time is trusted.
22 lines
387 B
Solidity
22 lines
387 B
Solidity
contract D {
|
|
uint x;
|
|
function s(uint _x) public { x = _x; }
|
|
function f() public view returns (uint) { return x; }
|
|
}
|
|
|
|
contract C {
|
|
D d;
|
|
constructor() {
|
|
d = new D();
|
|
}
|
|
function g() public view {
|
|
assert(d.f() == 0); // should fail
|
|
}
|
|
}
|
|
// ====
|
|
// SMTContract: C
|
|
// SMTEngine: all
|
|
// SMTExtCalls: trusted
|
|
// ----
|
|
// Warning 6328: (204-222): CHC: Assertion violation happens here.
|