aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr84772.c
blob: 1241d212350105f55f1c7adc2be150e1e72c96e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR target/84772 */
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */

#include <stdarg.h>

void
foo (int *x, int y, va_list ap)
{
  __builtin_memset (x, 0, sizeof (int));
  for (int i = 0; i < y; i++)
    va_arg (ap, long double);			/* { dg-bogus "uninitialized" } */  
}