summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/jumptab.c
blob: d86c30e40d6a292bce6cc683cfe2ffb06e74f710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
jumptab (a)
{
  int b;
  switch (a)
    {
    case 0:
      b = 6;break;
    case 1:
      b = 5;break;
    case 2:
      b = 4;break;
    case 3:
      b = 3;break;
    case 4:
      b = 2;break;
    case 5:
      b = 1;break;
    }
  return b;
}