shithub: scc

ref: 3d2624f2168d73f53ab04756f79c4e009b3d7916
dir: /tests/execute/0132-forward.c/

View raw version
struct S *x;
struct S {
	int i;
	struct S *next;
};

int
main(void)
{
	struct S y, *p;
	unsigned n;

	y.i = 0;
	y.next = 0;
	x = &y;
	*x = y;

	for (n = 0, p = &y; p; ++n, p = p->next)
		/* nothing */;
	return n;
}