aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-16.c
blob: f96170b073dfa0869ad8396c6678849264d79c0a (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-do compile } */
/* { dg-options "-O2 -fdump-tree-threadfull1-details" } */

int res;
void foo (int a, int b, int c, int d, int e)
{
  if (a > 100)
    res = 3;
  if (b != 5)
    res = 5;
  if (c == 29)
    res = 7;
  if (d < 2)
    res = 9;
  /* Accounting whoes makes this not catched.  */
#if 0
  if (e != 37)
    res = 11;
#endif
  if (a < 10)
    res = 13;
}

/* { dg-final { scan-tree-dump "SUCCESS" "threadfull1" } } */