solidity/test/libsolidity/smtCheckerTests/external_calls/call_reentrancy_1.sol

19 lines
481 B
Solidity
Raw Normal View History

2021-08-11 16:10:34 +00:00
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
2021-08-23 09:30:12 +00:00
// SMTIgnoreCex: yes
2021-08-11 16:10:34 +00:00
// ----
// Warning 2519: (100-106): This declaration shadows an existing declaration.
// Warning 2072: (100-106): Unused local variable.
// Warning 2072: (108-125): Unused local variable.
2021-08-23 09:30:12 +00:00
// Warning 6328: (143-157): CHC: Assertion violation happens here.