summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fold-reassoc-1.c
blob: 88d5dd89cd790f250c20e8e7884c67f8d81d9bc9 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O -ffast-math -fdump-tree-original" } */

double foo (double x)
{
  return (x + 0.5 - x - 0.5);
}

/* { dg-final { scan-tree-dump "return 0.0;" "original" } } */
/* { dg-final { cleanup-tree-dump "original" } } */