solidity/test/libsolidity/smtCheckerTests/modifiers/modifier_overflow.sol

18 lines
158 B
Solidity
Raw Normal View History

2019-03-11 20:06:28 +00:00
contract C
{
uint x;
modifier m {
require(x > 0);
_;
}
function f() m public {
assert(x > 0);
x = x + 1;
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2019-03-11 20:06:28 +00:00
// ----