(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr36998.c
       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-*-* } } } */
       6  
       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 *);
      11  
      12  void
      13  test (char *w, int x, char *y, char *z)
      14  {
      15    char *p, b[32];
      16    for (p = y; *p; p += strlen (p) + 1)
      17      {
      18        baz (w, p, x, z);
      19        foo ("msg1 %s", b);
      20      }
      21    for (p = y; *p; p += strlen (p) + 1)
      22      bar (" %s", p);
      23    foo ("msg2 %s", b);
      24  }