Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / infinite-recursion-3.c
blob2ae20a1108a7d21522f35d23be4ab40da5d6b33e
1 /* { dg-additional-options "-fno-analyzer-call-summaries -Wno-analyzer-too-complex -Wno-analyzer-symbol-too-complex" } */
3 struct node
5 struct node *left;
6 struct node *right;
7 int val;
8 };
10 int sum (struct node *n)
12 int result = 0;
13 if (n->left)
14 result += sum (n->left); /* { dg-bogus "infinite recursion" } */
15 if (n->right)
16 result += sum (n->right); /* { dg-bogus "infinite recursion" } */
17 return result;