Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / infinite-recursion-4-unlimited.c
blobbdb54a3ee78705b5a53d3a361209def02aa6333d
1 /* { dg-additional-options "-fno-analyzer-call-summaries -Wno-analyzer-too-complex" } */
3 /* A two-deep mutual recursion, walking a linked list (and thus presumably
4 terminating), with no explicit depth limit. */
6 struct node
8 struct node *child;
9 };
11 void foo (struct node *f);
13 void bar (struct node *b)
15 foo (b); /* { dg-bogus "infinite recursion" } */
18 void foo (struct node *f)
20 if (f->child)
21 bar (f->child); /* { dg-bogus "infinite recursion" } */