1 // PR c++/39371
2 // { dg-do compile }
3 
4 void
foo(bool b)5 foo (bool b)
6 {
7   switch ((unsigned int) b)
8     {
9     case 1:
10     case 2:
11       break;
12     }
13 }
14 
15 void
bar(unsigned char b)16 bar (unsigned char b)
17 {
18   switch ((unsigned int) b)
19     {
20     case 1:
21     case 257:
22     case 513:
23       break;
24     }
25 }
26