1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-dom2" } */
       3  
       4  float foo(float x)
       5  {
       6    x += 1;
       7    x -= 1;
       8    return x;
       9  }
      10  
      11  /* We should *not* fold the arithmetic.  */
      12  /* { dg-final { scan-tree-dump-times "0\\.0\[^%0\]" 0 "dom2"} } */