repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
switch3.C
blob
4f9b5485ef95449325cb583f758c8b15cf6d7ba3
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
}