solidity/test/libsolidity/smtCheckerTests/modifiers/modifier_simple.sol
2021-04-20 17:38:29 +02:00

17 lines
150 B
Solidity

contract C
{
uint x;
modifier m {
require(x > 0);
_;
}
function f() m public view {
assert(x > 0);
}
}
// ====
// SMTEngine: all
// ----