aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/vrp10.c
blob: 5a745845948644f675dc6122e9819c945b85bf87 (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
/* { dg-do run } */
/* { dg-options "-O2" } */

extern void abort (void);

foo (int k, int j)
{
  if (k >= 10)
    {
      if (j > k)
	{
	  /* We should fold this to if (0).  */
	  if (j < 10)
	    abort ();
	}
    }

  return j;
}

main()
{
  foo (10, 3);
  return 0;
}