mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
536 B
Solidity
19 lines
536 B
Solidity
contract C {
|
|
uint x;
|
|
function s(uint _x) public {
|
|
x = _x;
|
|
}
|
|
function f(address a) public {
|
|
(bool s, bytes memory data) = a.call("");
|
|
assert(x == 0); // should fail
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// SMTIgnoreCex: yes
|
|
// ----
|
|
// Warning 2519: (100-106='bool s'): This declaration shadows an existing declaration.
|
|
// Warning 2072: (100-106='bool s'): Unused local variable.
|
|
// Warning 2072: (108-125='bytes memory data'): Unused local variable.
|
|
// Warning 6328: (143-157='assert(x == 0)'): CHC: Assertion violation happens here.
|