blob: de9ee03b0a3465931d33e4f2b7c9520cfcc1d49b [file] [log] [blame]
/* PR c++/105497 */
/* { dg-options "-Wswitch" } */
enum E {
A,
B,
C __attribute((unused)),
D
};
void
g (enum E e)
{
switch (e)
{
case A:
case B:
case D:
break;
}
switch (e) // { dg-warning "not handled in switch" }
{
case A:
case B:
case C:
break;
}
}