Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr36998.c
blobbf08ed1233a6c45d6be8414bf8fb298a21ee6dd1
1 /* PR rtl-optimization/36998 */
2 /* { dg-do compile } */
3 /* { dg-options "-Os -fasynchronous-unwind-tables" } */
4 /* { dg-options "-Os -mpreferred-stack-boundary=2 -fasynchronous-unwind-tables" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
5 /* { dg-options "-fno-omit-frame-pointer" { target { avr-*-* } } } */
7 void foo (const char *, ...) __attribute__ ((noreturn));
8 int bar (const char *, ...);
9 extern __SIZE_TYPE__ strlen (const char *);
10 int baz (char *, char *, int, void *);
12 void
13 test (char *w, int x, char *y, char *z)
15 char *p, b[32];
16 for (p = y; *p; p += strlen (p) + 1)
18 baz (w, p, x, z);
19 foo ("msg1 %s", b);
21 for (p = y; *p; p += strlen (p) + 1)
22 bar (" %s", p);
23 foo ("msg2 %s", b);