mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
305 B
Solidity
18 lines
305 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
|
||
|
contract C
|
||
|
{
|
||
|
function f() internal pure returns (uint, bool, uint) {
|
||
|
uint x = 3;
|
||
|
bool b = true;
|
||
|
uint y = 999;
|
||
|
return (x, b, y);
|
||
|
}
|
||
|
function g() public pure {
|
||
|
(, bool b,) = f();
|
||
|
assert(!b);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (224-234): Assertion violation happens here
|