Changed the type names to uintX instead of intX.
[sixpic.git] / tests / control-structures / switch-branch-table.c
blob8bfb33bb7e6e5a1cb083d4a851e123bc231d24a9
1 byte f(){
2 byte x = 3;
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();