aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow/unreachableCode/constant_condition.sol
blob: e00398bc08f7a3f76ec4cca6d812bbc87e55b75c (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    function f() public pure {
        if (false) {
            return; // unreachable, but not yet detected
        }
        return;
    }
}