Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / Winfinite-recursion-5.c
blob1c3d1b48f941bec704e5bf376d5ffbc7aceebab6
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-warning "infinite recursion detected" } */
10 { /* { dg-error "inlining failed in call to" "" { target *-*-* } .-1 } */
11 return memcmp (p, q, size); /* { dg-message "recursive call" } */
12 } /* { dg-message "called from here" "" { target *-*-* } .-1 } */
14 int
15 foo (const void *p, const void *q, size_t size)
17 return memcmp (p, q, size);