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