view gcc/testsuite/gcc.dg/pr84772.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* 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" } */  
}