Debian Codegraph @

gcc/testsuite/c-c++-common/analyzer/pr94851-3.c

raw
1 /* { dg-additional-options "-O1" } */
2
3 struct List {
4 struct List *next;
5 };
6
7 void foo(struct List *p, struct List *q)
8 {
9 while (p && p != q){
10 p = p->next;
11 }
12 }
13
14 int main()
15 {
16 struct List x = {0};
17 foo(0, &x);
18 return 0;
19 }
20