Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / Winfinite-recursion-3.c
blob9205422041ed847cccb1947ee7a07a9d5f1102a6
1 /* PR c/104633 */
2 /* { dg-do compile } */
3 /* { dg-options "-Winfinite-recursion" } */
5 typedef __SIZE_TYPE__ size_t;
6 int memcmp (const void *, const void *, size_t);
8 extern inline __attribute__((always_inline, gnu_inline)) int
9 memcmp (const void *p, const void *q, size_t size) /* { dg-bogus "infinite recursion detected" } */
11 return __builtin_memcmp (p, q, size); /* { dg-bogus "recursive call" } */
14 int
15 foo (const void *p, const void *q, size_t size)
17 return memcmp (p, q, size);