| 1 |
// PR c++/90875 |
| 2 |
// { dg-options -Wno-switch-outside-range } |
| 3 |
|
| 4 |
void f(char c) |
| 5 |
{ |
| 6 |
switch (c) |
| 7 |
case 300: //{ dg-bogus "case label value is less than minimum value for type" } |
| 8 |
case -300:; // { dg-bogus "case label value is less than minimum value for type" } |
| 9 |
} |