summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/920428-6.c
blob: e43af7ed3a76b02167c23e7ee5fc2a95e08df786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
typedef struct x
{
  struct x *type;
  struct x *chain;
  struct x *value;
} *tree;

int
func (new, old)
     register tree new, old;
{
  if (old->type == 0 || new->type == 0)
    {
      register tree t = old->type;
      if (t == 0)
	t = new->type;
      for (; t; t = t->chain )
	if (t->value)
	  return 1;
    }
  return 0;
}