Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / infinite-recursion-4-unlimited-buggy.c
blob7ed1a2bb38c732614ec577b639969a995f0abb23
1 /* { dg-additional-options "-fno-analyzer-call-summaries -Wno-analyzer-too-complex" } */
3 /* A two-deep mutual recursion, with no limit, and
4 failing to walk the list, thus leading to an infinite recursion. */
6 struct node
8 struct node *child;
9 };
11 void foo (struct node *f);
13 void bar (struct node *b)
15 foo (b); /* { dg-warning "infinite recursion" } */
18 void foo (struct node *f)
20 if (f->child)
21 /* Bug: should have recursed to f->child, not to f. */
22 bar (f); /* { dg-warning "infinite recursion" } */