20-02-2017, 09:04 AM
In my opinion, this code complies with Rule 16.1. The syntax given in Rule 16.1 says that a switch-clause is a statement-list-opt followed by a break. I can't see anything in the rule that prevents a break from appearing within a statement-list-opt.
Of course, the example does violate Rule 2.1 because the code following the first break is unreachable.
Of course, the example does violate Rule 2.1 because the code following the first break is unreachable.
<t></t>