2 /* { dg-options "-O0" } */
4 /* Check that out-of-bounds case warnings work in the case that the
5 testing expression is promoted. */
11 case -1: /* { dg-warning "case label value is less than minimum value for type" } */
13 case 256: /* { dg-warning "case label value exceeds maximum value for type" } */
20 /* Like above, but for case ranges that need to be satured. */
22 foo2 (unsigned char i)
26 case -1 ... 1: /* { dg-warning "lower value in case label range less than minimum value for type" } */
28 case 254 ... 256: /* { dg-warning "upper value in case label range exceeds maximum value for type" } */