mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
374 B
Solidity
24 lines
374 B
Solidity
contract C {
|
|
modifier m() {
|
|
_;
|
|
}
|
|
|
|
modifier n() {
|
|
string memory _ = "failed";
|
|
_;
|
|
revert(_);
|
|
}
|
|
|
|
function f() m() public returns (uint) {
|
|
return 88;
|
|
}
|
|
|
|
function g() n() public returns (uint) {
|
|
}
|
|
}
|
|
// ====
|
|
// EVMVersion: >=byzantium
|
|
// ----
|
|
// f() -> 88
|
|
// g() -> FAILURE, hex"08c379a0", 0x20, 6, "failed"
|