mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
351 B
Solidity
19 lines
351 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C
|
|
{
|
|
function f() internal pure returns (uint, uint) {
|
|
return (2, 3);
|
|
}
|
|
function g() public pure {
|
|
uint x;
|
|
uint y;
|
|
(x,y) = f();
|
|
assert(x == 1);
|
|
assert(y == 4);
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 4661: (182-196): Assertion violation happens here
|
|
// Warning 4661: (200-214): Assertion violation happens here
|