repo.or.cz
/
sixpic.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Solved a bug with register allocation (didn't consider interference
[sixpic.git]
/
tests
/
control-structures
/
switch-branch-table.c
blob
5f984f21627bd421fde8895fa24a0ed2a68660ad
1
byte
f
(){
2
byte x
=
0
;
3
byte y
=
0
;
4
switch
(
x
){
5
case
0
:
6
y
+=
1
;
7
/* break; */
// works with and without fall throughs, including in the last case
8
case
1
:
9
y
+=
2
;
10
break
;
11
case
2
:
12
y
+=
4
;
13
/* break; */
14
case
3
:
15
y
+=
8
;
16
/* break; */
17
}
18
return
y
;
19
}
20
f
();