rt_gccstream/gcc/testsuite/gcc.dg/fold-sub.c

13 lines
277 B
C

/* { dg-do compile } */
/* { dg-options "-ffinite-math-only -fdump-tree-gimple" } */
float f(float x)
{
return x - x;
}
/* Substraction should be turned into 0. */
/* { dg-final { scan-tree-dump-not " - " "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */