mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
327 B
Solidity
18 lines
327 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C
|
|
{
|
|
uint public x;
|
|
function g() public {
|
|
x = 0;
|
|
this.h();
|
|
// Fails as false positive because CHC does not support `this`.
|
|
assert(x == 2);
|
|
}
|
|
function h() public {
|
|
x = 2;
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 6328: (186-200): Assertion violation happens here.
|