solidity/test/libsolidity/semanticTests/inlineAssembly/inline_assembly_in_modifiers.sol
2020-03-19 14:42:25 +01:00

20 lines
276 B
Solidity

contract C {
modifier m {
uint256 a = 1;
assembly {
a := 2
}
if (a != 2) revert();
_;
}
function f() public m returns (bool) {
return true;
}
}
// ====
// compileViaYul: also
// ----
// f() -> true