Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / gcc.dg / pr36998.c
blob9315fd544446e3b260994fcfed5204f4df639831
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-*-* } && ilp32 } } } */
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);