2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / switch3.C
blob4f9b5485ef95449325cb583f758c8b15cf6d7ba3
1 // PR c++/39371
2 // { dg-do compile }
4 void
5 foo (bool b)
7   switch ((unsigned int) b)
8     {
9     case 1:
10     case 2:
11       break;
12     }
15 void
16 bar (unsigned char b)
18   switch ((unsigned int) b)
19     {
20     case 1:
21     case 257:
22     case 513:
23       break;
24     }