(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
expr/
stdarg3.C
// PR c++/70084
// { dg-do compile }

#include <stdarg.h>

struct A
{
  A (const char *f, ...);
};

A::A (const char *f, ...)
{
  va_list ap;
  va_start (ap, f);
  int i = va_arg (ap, int);	// { dg-bogus "first argument to 'va_arg' not of type 'va_list'" }
  int j = va_arg ((ap), int);	// { dg-bogus "first argument to 'va_arg' not of type 'va_list'" }
  va_end (ap);
}