mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
340 B
Solidity
18 lines
340 B
Solidity
contract C {
|
|
function f() public pure {
|
|
assembly {
|
|
revert(0, 0)
|
|
revert(0, 0)
|
|
}
|
|
}
|
|
function g() public pure {
|
|
assembly {
|
|
revert(0, 0)
|
|
}
|
|
revert();
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 5740: (100-112): Unreachable code.
|
|
// Warning 5740: (222-230): Unreachable code.
|