solidity/test/libsolidity/smtCheckerTests/functions/function_call_does_not_clear_local_vars.sol

12 lines
186 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function f() public {
uint a = 3;
this.f();
assert(a == 3);
f();
assert(a == 3);
}
}
// ----