aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp110.c
blob: 34d7eb4e76955ed1f27df16eb52ef38fb423e897 (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
/* { dg-options "-O2" }  */

extern void foo (void);
extern void bar (void);

void
test (int i)
{
  if (i == 1)
    return;

  typedef int t;
  t j = i;
  switch (j)
    {
    case 1:
    case 2:
      foo ();
      break;
    case 7:
      bar ();
      break;
    }
}