solidity/test/libsolidity/syntaxTests/controlFlow/uninitializedAccess/unreachable.sol

12 lines
199 B
Solidity

contract C {
uint[] s;
function f() internal returns (uint[] storage a)
{
revert();
a[0] = 0;
a = s;
}
}
// ----
// Warning 5740: (112-135): Unreachable code.