aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/forwprop-16.c
blob: b47edea0c184cfe772b5858e6359be55524bc14a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-forwprop1" } */

int foo (double xx, double xy)
{
  int p = xx < xy;
  int np = !p; 
  if (np)
    return 5;
  return 2;
}

/* { dg-final { scan-tree-dump "if \\\(x" "forwprop1" } } */
/* { dg-final { cleanup-tree-dump "forwprop1" } } */