summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr20922-2.c
blob: 4bbebfd5f17d422a1187c9df32aabe4b7445ba8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-fwrapv -fdump-tree-gimple" } */
int f (int i)
{
  return (i - 2) > i;
}

int g (int i)
{
  return (i + 2) < i;
}

int h (double i)
{
  return (i + 2.0) <= i;
}
/* { dg-final { scan-tree-dump-times " = 0" 0 "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */