mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix ICE on tuple assignment
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract C {
|
||||
function f() public pure returns(int) {
|
||||
int a;
|
||||
(,, a) = ((((((1, 3, (((((2)))))))))));
|
||||
assert(a == 2);
|
||||
assert(a == 3);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 6328: (157-171): Assertion violation happens here
|
||||
@@ -0,0 +1,11 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract C {
|
||||
function f() public pure returns(int) {
|
||||
int a;
|
||||
((,, a)) = ((((((1, 3, (((((2)))))))))));
|
||||
assert(a == 2);
|
||||
assert(a == 3);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 6328: (159-173): Assertion violation happens here
|
||||
Reference in New Issue
Block a user