summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20050423-1.c
blob: fee5eb9093e92733be38b4055584a2091f422f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/20742 */

int
foo (int x, int y)
{
  register int a = y + 57;
  register int b = y + 31;

  while (x-- > 0)
    {
 #define TEN(x) x x x x x x x x x x
      TEN (TEN (a += b; b -= a;))
      TEN (TEN (a += b; b -= a;))
    }
  return a + b;
}