2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wswitch" }
10 NumberOfButtons [[maybe_unused]]
18 Moo __attribute((unused))
30 Button b = Button::Left;
31 switch (b) { // { dg-bogus "not handled" }
38 Sound s = Sound::Bark;
39 switch (s) { // { dg-bogus "not handled" }
46 Chordata c = Chordata::Vertebrata;
47 switch (c) { // { dg-warning "not handled" }
48 case Chordata::Cephalochordata:
49 case Chordata::Vertebrata: