/* PR tree-optimization/110134 */
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */

int fu(unsigned a)
{
  a = -a;
  return a != 0;
}
int fs(signed a)
{
  a = -a;
  return a != 0;
}

/* We should have optimized out the a = -a; statements. */
/* { dg-final { scan-tree-dump-not "= -a" "optimized" } } */