summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr39999.c
blob: c46a651a18aacc1c87a589d5de5d7c7d5deab5e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
void foo(void *);
void
MMAPGCD (int *A1, int *A2)
{
  int *t;

  do
    {
      t = A1;
      A1 = A2;
      A2 = t;
    }
  while (A2[-1]);

  foo (A1-1);
  foo (A2-1);
}