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
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
switch-10.c
blob
0ffc9eb5757162186feb1ac5c9f735e3f96fe4bc
1
/* { dg-options "-O2 -fdump-tree-cfg" } */
2
/* { dg-final { scan-tree-dump "case 0:" "cfg" } } */
3
/* { dg-final { scan-tree-dump-not "case 1 ... 255:" "cfg" } } */
4
#include <stdint.h>
5
6
void
foo
(
void
);
7
void
bar
(
void
);
8
9
void
10
test
(
uint8_t
ch
)
11
{
12
switch
(
ch
)
13
{
14
case
0
:
15
foo
();
16
break
;
17
18
case
1
...
255
:
19
bar
();
20
break
;
21
}
22
}