mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
26 lines
581 B
Solidity
26 lines
581 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
|
||
|
contract C
|
||
|
{
|
||
|
modifier m {
|
||
|
if (true)
|
||
|
_;
|
||
|
}
|
||
|
|
||
|
function f(address a) m public pure {
|
||
|
if (true) {
|
||
|
a = g();
|
||
|
assert(a == address(0));
|
||
|
}
|
||
|
}
|
||
|
function g() public pure returns (address) {
|
||
|
address a;
|
||
|
a = address(0);
|
||
|
return a;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (247-257): Type conversion is not yet fully supported and might yield false positives.
|
||
|
// Warning: (162-172): Type conversion is not yet fully supported and might yield false positives.
|
||
|
// Warning: (247-257): Type conversion is not yet fully supported and might yield false positives.
|