solidity/test/libsolidity/smtCheckerTests/modifiers/modifier_parameters.sol
2021-04-08 21:03:39 +02:00

18 lines
233 B
Solidity

contract C
{
uint s;
modifier m(uint a) {
// Condition is always true for m(2).
require(a > 0);
_;
}
function f(uint x) m(x) m(2) m(s) public view {
assert(x > 0);
assert(s > 0);
}
}
// ====
// SMTEngine: all
// ----