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

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

int h (double i)
{
  return i >= i + 2.0;
}

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