summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr27132.c
blob: 272862a2d84f5d626fb6a0d5dd2daa152ce5445a (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple" } */

int foo(int i)
{
  return i - -1;
}

/* { dg-final { scan-tree-dump "i \\+ 1" "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */