Debian Codegraph @

gcc/testsuite/g++.dg/other/switch3.C

raw
1 // PR c++/39371
2 // { dg-do compile }
3
4 void
5 foo (bool b)
6 {
7 switch ((unsigned int) b)
8 {
9 case 1:
10 case 2:
11 break;
12 }
13 }
14
15 void
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 }