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

21 lines
283 B
Solidity
Raw Normal View History

2020-04-15 09:59:47 +00:00
abstract contract A {
function f() public mod returns (bool r) {
return true;
}
modifier mod virtual;
}
contract C is A {
modifier mod override {
if (false) _;
}
}
2020-11-30 17:59:49 +00:00
// ====
// compileViaYul: also
2021-04-23 15:59:01 +00:00
// compileToEwasm: also
2020-04-15 09:59:47 +00:00
// ----
// f() -> false