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

15 lines
184 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
uint x;
function f(uint y) public {
x = y;
}
function g(uint y) public {
require(y < 1000);
this.f(y);
assert(x < 1000);
}
}