9 struct list l = { NULL, 5 };
10 struct list *sptr = &l;
11 struct list l2 = { NULL, 42 };
12 struct list *sptr2 = &l2;
14 struct list *test(int n)
26 for(ptr2 = ptr1; ptr2 != NULL; ptr2 = ptr2->next) {
29 printf("Sum: %d\n", sum);
34 int main(int argc, char **argv)
36 struct list *ptr1 = test(0);
37 struct list *ptr2 = test(1);
40 assert(ptr2 == sptr2);