summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/va-arg-1.c
blob: b8b7d3c31cfe426050f49c9c5b2ed879b2ae5d00 (plain)
1
2
3
4
5
6
7
8
#include <stdarg.h>

f (int x, ...)
{
  va_list args;
  va_start (args, bogus_variable);  /* { dg-error "undeclared|for each function|not last named" } */
  va_end (args);
}