(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr46183.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-fno-dse" } */
       3  
       4  void bar(void);
       5  
       6  void foo (int i, ...)
       7  {
       8    __builtin_va_list ap;
       9    __builtin_va_start (ap, i);
      10    __builtin_va_arg (ap, int);
      11    while (i) i++;
      12    __builtin_va_arg (ap, int);
      13    while (i) i++;
      14    __builtin_va_arg (ap, int);
      15    while (i) i++;
      16    __builtin_va_arg (ap, int);
      17    if (i)
      18      bar ();
      19  }
      20