* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / pr30020.c
blobb8082cd49bf83a7da2b9caaba9ead260f735275f
1 /* PR c/30020 */
2 /* { dg-do compile } */
4 int
5 foo (unsigned char c)
7 switch (c) { case 42: case -1: return -1; }; /* { dg-warning "25:case label value" } */
8 switch (c) { case 42: case 300: return -1; }; /* { dg-warning "25:case label value" } */
9 switch (c) { case 42: case -1 ... 2: return -1; }; /* { dg-warning "25:lower value in case" } */
10 switch (c) { case 42: case 250 ... 300: return -1; }; /* { dg-warning "25:upper value in case" } */
11 return 0;