Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr84772.c
blob1241d212350105f55f1c7adc2be150e1e72c96e8
1 /* PR target/84772 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -Wuninitialized" } */
5 #include <stdarg.h>
7 void
8 foo (int *x, int y, va_list ap)
10 __builtin_memset (x, 0, sizeof (int));
11 for (int i = 0; i < y; i++)
12 va_arg (ap, long double); /* { dg-bogus "uninitialized" } */