solidity/test/libsolidity/semanticTests/modifiers/function_modifier_multiple_times.sol

18 lines
275 B
Solidity
Raw Normal View History

contract C {
uint256 public a;
modifier mod(uint256 x) {
a += x;
_;
}
function f(uint256 x) public mod(2) mod(5) mod(x) returns (uint256) {
return a;
}
}
2020-12-03 15:08:38 +00:00
// ====
// compileViaYul: also
// ----
// f(uint256): 3 -> 10
// a() -> 10