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

16 lines
149 B
Solidity
Raw Normal View History

2019-03-11 20:06:28 +00:00
pragma experimental SMTChecker;
contract C
{
uint x;
modifier m {
require(x > 0);
_;
}
function f() m public view {
assert(x > 0);
}
}