aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp-float-inf-1.c
blob: 1d21cce41e63b6179a6980aebd2afa10bf98b5b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile }
// { dg-options "-O2 -fdump-tree-evrp-details" }

void foo ();
void bar (double);

void funky(double f, double g)
{
  if (f <= __builtin_inf ())
    foo ();
  else
    bar (f);
}

// { dg-final { scan-tree-dump-not " Inf,  Inf" "evrp" } }