mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Control flow analysis for inline assembly.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
contract C {
|
||||
function f(uint256 y) public pure returns (uint256 x) {
|
||||
assembly {
|
||||
revert(0, 0)
|
||||
x := y
|
||||
}
|
||||
}
|
||||
function g(uint256 y) public pure returns (uint256 x) {
|
||||
assembly {
|
||||
revert(0, 0)
|
||||
}
|
||||
x = y;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (129-135): Unreachable code.
|
||||
// Warning: (274-279): Unreachable code.
|
||||
Reference in New Issue
Block a user