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
pretty-print.h (pp_base): Remove.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
switch-9.c
blob
2ae89d09518c1dc8f3d0686d2c13a07085579c9f
1
/* PR middle-end/18859 */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
5
void
foo
(
int
a
)
6
{
7
switch
(
a
)
8
{
9
case
0
... -
1
:
/* { dg-warning "empty range" } */
10
a
=
a
+
2
;
11
break
;
12
13
case
1
...
2
:
14
a
=
0
;
15
break
;
16
17
case
3
...
4
:
18
a
=
1
;
19
break
;
20
21
case
5
...
6
:
22
a
=
0
;
23
break
;
24
}
25
}