summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20080812-1.c
blob: 2e4c13a70c854810acef12564eb65dd4d2401728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR middle-end/37014 */

void bar (signed char *);

void
foo (int x, int y)
{
  int i;
  signed char a[123], b[123], c;
  for (i = 0; i < 123; i++)
    {
      int e = y - x;
      int d = e < 0 ? -e : e;
      c = d < 75;
      a[y] = c;
      b[y] = c;
      y--;
    }
  bar (b);
  bar (a);
}