4 /* Valid switch statement */
23 /* Error, duplicate cases */
44 /* Error, more than one default */
65 /* Warn about unreachable code */
72 x
++; /* WARNING(SDCC) */
85 /* Warn about unreachable initializer */
91 char y
=1; /* WARNING(SDCC) */
98 return y
; /* IGNORE */
103 /* Error, missing switch */
118 /* Error, switch condition must be integral */
122 float f
; /* IGNORE */
124 switch(f
) /* ERROR */
140 /* Error, cases must be integral */
148 case 0.0: /* ERROR */
163 /* Error: 'case' range expressions require C2y or later */
168 case 1 ... 3: /* ERROR */
182 /* Same code as above, but valid in C2y */
201 /* Error: overlap with case range */
208 case 1 ... 3: /* ERROR */
222 /* Warning: 'case' range empty; case ignored */
229 case 3 ... 1: /* WARNING(SDCC) */
230 return 3; /* IGNORE */ /* unreachable code warning */