aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp116.c
blob: 9e68a774aee3ff1edda5212bb69ec884b3621dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

int
f (int m1, int m2, int c)
{
  int d = m1 > m2;
  int e = d * c;
  return e ? m1 : m2;
}

/* { dg-final { scan-tree-dump-times "\\? c_\[0-9\]\\(D\\) : 0" 1 "optimized" } } */