Solved a bug with register allocation (didn't consider interference
[sixpic.git] / tests / control-structures / switch-branch-table.c
blob5f984f21627bd421fde8895fa24a0ed2a68660ad
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; */
18 return y;
20 f();