8sa1-gcc/gcc/testsuite/gcc.c-torture/compile/920428-6.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

23 lines
330 B
C

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;
}