aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp-float-nan-1.c
blob: 126949b2b4cdf738b75c3aacb2dace5de27beb71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do compile }
// { dg-options "-O2 -ffinite-math-only -fdump-tree-evrp" }

void bar(float);

void funk(int cond)
{
  float x;

  if (cond)
    x = __builtin_nan ("");
  else
    x = 1.24;

  bar(x);
}

// { dg-final { scan-tree-dump-times "bar \\(1.24" 1 "evrp" } }