1 /* { dg-do compile } */
2 /* { dg-options "-fno-dse" } */
3 
4 void bar(void);
5 
foo(int i,...)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 
21