aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr99230.c
blob: eb3f982c2adb65e6f0b5088bb205a71826cd4b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* PR debug/99230 */
/* { dg-do compile } */
/* { dg-options "-O2 --param logical-op-non-short-circuit=0 -fcompare-debug --param=jump-table-max-growth-ratio-for-speed=5000" } */

extern void fn2 (void);
extern void fn3 (int);
int a, b;
void
fn1 (void)
{
  int c;
  short d;
  switch (a) {
  case 22000:
    fn2 ();
  case 22300:
    b = 0;
  case 22600:
  case 22601:
  case 22900:
    fn3 (1);
  case 20100:
    fn3 (2);
  case 20200:
    fn3 (3);
  case 20300:
    fn3 (4);
  case 20400:
    fn3 (5);
  case 20310:
    fn3 (4);
  case 20410:
    fn3 (5);
  }
  if (d || c) {
    do
      ;
    while (0);
  }
}