summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20000629-1.c
blob: 58b522ed815ea0fd329cae85de99a72a597b1535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
struct a
{
  struct a * x;
};

void
foo (struct a * b)
{
  int i;

  for (i = 0; i < 1000; i++)
    {
      b->x = b;
      b++;
    }
}

void
bar (struct a * b)
{
  int i;

  for (i = 0; i < 1000; i++)
    {
      b->x = b;
      b--;
    }
}