18-10-2017, 11:01 AM
I assume you mean fully compliant, right?
Code:
switch (i)/* essentially integer (for bool use if/else), needs at least two clauses*/
{
case 0:/* empty fallthrough compliant*/
case 1:
doSomething();/* statement or comment required*/
break;/* unconditional break in every case clause required
default:/* default case required as last (or first) clause*/
/* statement or comment required*/
break;/* unconditional break in default required*/
}
<t></t>