summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/vaarg1.C
blob: bcc9df3892d3d8ff9bc0bc3810afae52b7d1fa7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

#include <stdarg.h>
#include <stdio.h>

void f (int i, ...)
{
  va_list ap;

  va_start (ap, i);
  vprintf ("test", ap);
  va_end (ap);
}